High
js-toml is vulnerable to Prototype Pollution
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-54803
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 03:08 UTC · Revision 1
Source evidence
js-toml is vulnerable to Prototype Pollution
core-osv · Original sourcePublished 5 Aug 2025, 00:06 UTC
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.
osv:CVE-2025-54803
Complete source record
{
"id": "efe3ec6591915e6a2fd544e0ff316fccd9162f8833916d3b064b9cda5ebc400c",
"url": "https://osv.dev/vulnerability/CVE-2025-54803",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "js-toml is vulnerable to Prototype Pollution",
"summary": "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.",
"evidence": "osv:CVE-2025-54803",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-54803",
"aliases": [
"CVE-2025-54803",
"GHSA-65fc-cr5f-v7r2"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sunnyadn/js-toml",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0052f1158c0e6b5dd935e280aff98937a0a5c3e8"
},
{
"fixed": "b125910a3f094b744c9c3571360d4b9e3a472f66"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sunnyadn:js-toml:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b125910a3f094b744c9c3571360d4b9e3a472f66"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v1.0.1",
"v1.0.0",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-54803.json"
}
}
],
"modified": "2026-10-28T02:30:32.838623529Z",
"provider": "osv",
"references": [
"https://gist.github.com/siunam321/f3dc4d21a5a932c67b6c11d0026f5afc",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54803.json",
"https://github.com/sunnyadn/js-toml/security/advisories/GHSA-65fc-cr5f-v7r2",
"https://nvd.nist.gov/vuln/detail/CVE-2025-54803",
"https://github.com/sunnyadn/js-toml/commit/b125910a3f094b744c9c3571360d4b9e3a472f66"
],
"provider_metadata": {
"cwe_ids": [
"CWE-1321"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54803.json"
}
},
"related_cves": [
{
"value": "CVE-2025-54803",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 499911,
"published_at": "2025-08-05T00:06:15.916+00:00"
}