CVE-2025-54803
HIGH 7.9CVSS 4.0js-toml Prototype Pollution Vulnerability
js-toml is a TOML parser for JavaScript, fully compliant with the TOML 1.0.0 Spec. In versions below 1.0.2, a prototype pollution vulnerability in js-toml allows a remote attacker to add or modify properties of the global Object.prototype by parsing a maliciously crafted TOML input. This is fixed in version 1.0.2.
- Published
- 5 Aug 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-1321
- Also known as
- GHSA-65fc-cr5f-v7r2
- Sources
- NVDJSONOSV GHSA-65fc-cr5f-v7r2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.9 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | sunnyadn | js-tomlcpe:2.3:a:sunnyadn:js-toml:*:*:*:*:*:node.js:*:* |
< 1.0.2 | 1.0.2 |
| OSV | npm | js-toml | < 1.0.2 | 1.0.2 |
References
- https://gist.github.com/siunam321/f3dc4d21a5a932c67b6c11d0026f5afc · Exploit, WEB
- https://github.com/sunnyadn/js-toml/commit/b125910a3f094b744c9c3571360d4b9e3a472f66 · Patch, WEB
- https://github.com/sunnyadn/js-toml/security/advisories/GHSA-65fc-cr5f-v7r2 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-54803 · ADVISORY
- https://github.com/sunnyadn/js-toml · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 5 Aug 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 4 Aug 2025)