PatchSiren

PatchSiren cyber security CVE debrief

CVE-2021-48012 Gin-Quin CVE debrief

CVE-2021-48012 is a high-severity vulnerability in the fast-toml package, which allows attackers to pollute the Object.prototype by supplying malicious TOML data. This can lead to denial of service or authorization bypass. The vulnerability is caused by the fast-toml package's inability to properly handle __proto__ keys in parsed TOML data. Defenders should prioritize verifying the affected versions of fast-toml in their inventory and applying patches or mitigations as needed. The affected product deployments should be confirmed to exist in managed environments and an owner should be assigned for follow-up.

Vendor
Gin-Quin
Product
fast-toml
CVSS
HIGH 8.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-12
Original CVE updated
2026-10-12
Advisory published
2026-10-12
Advisory updated
2026-10-12

Who should care

Defenders responsible for maintaining and securing applications that use the fast-toml package should be aware of this vulnerability and take necessary steps to mitigate it. This includes verifying the affected versions of fast-toml in their inventory, applying patches or mitigations as needed, and monitoring for potential security issues related to prototype pollution. Operators, platform administrators, vulnerability management teams, and security teams

Why it matters

CVE-2021-48012 is a high-severity vulnerability in the fast-toml package that allows attackers to pollute the Object.prototype, potentially leading to denial of service or authorization bypass. Defenders should prioritize verifying the affected versions of fast-toml in their inventory and applying patches or mitigations as needed.

  • Potential denial of service due to prototype pollution
  • Potential authorization bypass due to prototype pollution
  • Need to verify affected versions of fast-toml in inventory
  • Need to apply patches or mitigations to prevent exploitation

Technical summary

The fast-toml package is vulnerable to prototype pollution due to its inability to properly handle __proto__ keys in parsed TOML data. This allows attackers to modify the Object.prototype, potentially leading to security issues. The vulnerability can be exploited by passing [__proto__] or [constructor.prototype] table headers or __proto__.x dotted keys to parse() to pollute all objects, causing denial of service or authorization bypass. Defenders should prioritize verifying the affected versions of fast-toml in their inventory and applying patches or mitigations as needed.

Defensive priority

Defenders should prioritize verifying the affected versions of fast-toml in their inventory and applying patches or mitigations as needed.

Recommended defensive actions

  • Verify the version of fast-toml in your inventory and update to a patched version if necessary
  • Implement input validation and sanitization to prevent malicious TOML data from being processed
  • Monitor for potential security issues related to prototype pollution
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by the fast-toml package's inability to properly handle __proto__ keys in parsed TOML data. This allows attackers to modify the Object.prototype, potentially leading to security issues.

Sources and references

Verified primary and authoritative sources

  • CVE-2021-48012 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2021-48012

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2021-48012 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2021/48xxx/CVE-2021-48012.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Gin-Quin/fast-toml/issues/8

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Gin-Quin/fast-toml/pull/3

    Supplemental source - issue-tracking, patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/Gin-Quin/fast-toml

    Supplemental source - product

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/fast-toml-through-0.5.4-prototype-pollution-via-proto-keys-in-parsed-toml

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.