Vulnerability · Published Aug 5, 2025 · Assigned by GitHub_M

CVE-2025-54803js-toml is vulnerable to Prototype Pollution

High 7.9

In plain English

A high-severity prototype pollution in js-toml from sunnyadn. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 47% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.9High
Exploit odds (30 days)0.6%top 52.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmjs-toml1.0.2GHSA-65fc-cr5f-v7r2

Affected products (as reported)

VendorProductVersions
sunnyadn js-toml < 1.0.2

Weakness: CWE-1321 · Vector: 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

References