CVE-2021-48012 Details
Description
fast-toml through 0.5.4 contains a prototype pollution vulnerability that allows attackers to modify Object.prototype by supplying TOML containing __proto__, constructor or prototype key segments. Attackers can pass [__proto__] or [constructor.prototype] table headers or __proto__.x dotted keys to parse() to pollute all objects, causing denial of service or authorization bypass.
A prototype pollution vulnerability has been identified in the fast-toml TOML parser for Node.js, affecting versions through 0.5.4. This vulnerability allows attackers to modify Object.prototype by injecting TOML that includes __proto__, constructor, or prototype key segments. Exploitation can be achieved by using [__proto__] or [constructor.prototype] table headers, or by employing __proto__.x dotted keys. The resulting prototype pollution can lead to various issues, including denial-of-service conditions or bypassing authorization mechanisms.
Users can address this vulnerability by updating to fast-toml version 0.5.5 or later, where the prototype pollution issue has been fixed. For those unable to update, a manual workaround involves filtering out dangerous keys such as __proto__, constructor, and prototype before parsing TOML input.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 12, 2026CISA-ADP
Assessed Oct 26, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/Gin-Quin/fast-toml | [email protected] | ProductSource CodeVendor |
| https://github.com/Gin-Quin/fast-toml/issues/8 | [email protected] | ExploitIssue TrackingTechnical AnalysisVendor |
| https://github.com/Gin-Quin/fast-toml/pull/3 | [email protected] | Issue TrackingVendor |
| https://www.vulncheck.com/advisories/fast-toml-through-0.5.4-prototype-pollution-via-proto-keys-in-parsed-toml | [email protected] | AdvisoryBundle |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1321 | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| fast-toml | <= 0.5.4 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Modified | CISA-ADP |
| Oct 12, 2026 | New CVE Received | [email protected] |
Volerion