CVE-2021-48012

8.2High

Published Oct 12, 2026 · NVD status: Received · AI triage by gemini-3.8-flash

8.2CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
High impact on integrity
Weakness
CWE-1321

What an attacker gets

Remote attackers can pollute Object.prototype across the Node.js process to bypass authorization or cause denial of service. They only need to submit untrusted TOML payloads containing sensitive property keys to the parser.

Root cause

The parser fails to sanitize object properties like __proto__ and constructor.prototype when processing TOML table headers and dotted keys into JavaScript objects.

Affected versions

fast-toml through version 0.5.4

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L

Fix & remediation

No official patched release is available; replace fast-toml with an actively maintained alternative like @iarna/toml or smol-toml, or sanitize incoming TOML inputs to reject keys containing __proto__, constructor, or prototype before parsing.

remediation — bash
$ npm ls fast-toml

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2021-48012

More fully triaged vulnerabilities you may want to check next.