CVE-2025-54803
Sunnyadn Js-toml 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.
Affected products
Js-toml. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Sunnyadn Js-toml runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/sunnyadn/js-toml/security/advisories/GHSA-65fc-cr5f-v7r2 · Vendor Advisory
- github.com/sunnyadn/js-toml/commit/b125910a3f094b744c9c3571360d4b9e3a472f66 · Patch
- gist.github.com/siunam321/f3dc4d21a5a932c67b6c11d0026f5afc · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-54803
- github.com/advisories/GHSA-65fc-cr5f-v7r2
- nvd.nist.gov/vuln/detail/CVE-2025-54803
- cve.org/CVERecord?id=CVE-2025-54803
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.