CVE-2021-48012

fast-toml through 0.5.4 Prototype Pollution via __proto__ Keys in Parsed TOML

Published Oct 12, 2026 CVSS 4.0 · 8.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

fast-toml versions up to 0.5.4 are vulnerable to prototype pollution because the parser accepts TOML tables or keys that contain __proto__, constructor, or prototype. By supplying such keys, an attacker can modify Object.prototype and thereby alter the behavior of all JavaScript objects in the process. This enables denial of service or authorization bypass scenarios if the polluted prototype is later used in application logic.

Affected Systems

The vulnerability affects the fast-toml package provided by the Gin-Quin project, specifically any deployment using version 0.5.4 or earlier.

Risk and Exploitability

The CVSS score of 8.8 marks this flaw as high risk. Although an EPSS score is not available, the flaw remains exposed in the wild and is not currently listed in CISA’s KEV catalog. Attackers can exploit it by supplying crafted TOML input to the parse() function, which is typically invoked on user data. Successful exploitation leads to uncontrolled manipulation of JavaScript prototypes, rendering the application vulnerable to denial of service or elevated privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade fast-toml to version 0.5.5 or later, which resolves the prototype pollution issue.
  • If an immediate upgrade is impossible, sanitize all incoming TOML by stripping or rejecting any __proto__, constructor, or prototype keys before invoking parse().
  • When possible, limit parse() usage to trusted data and enforce a strict configuration that blocks dotted keys containing __proto__.

Generated by OpenCVE AI on October 12, 2026 at 22:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gin-quin
Gin-quin fast-toml
Vendors & Products Gin-quin
Gin-quin fast-toml
Type Values Removed Values Added
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.
Title fast-toml through 0.5.4 Prototype Pollution via __proto__ Keys in Parsed TOML
Weaknesses CWE-1321
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L'}

cvssV4_0

{'score': 8.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-1321

    Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 26, 2026, 5:37 PM
Reserved
Oct 12, 2026, 7:37 PM
Status
Deferred
Published
Oct 12, 2026, 9:17 PM
Modified
Oct 26, 2026, 6:17 PM