CVE-2026-50029
Last modified
CVE-2026-50029 is a medium-severity vulnerability rated 5.3/10 on the CVSS scale. js-toml is a TOML parser for JavaScript, Prior to version 1.1.2, the interpreter checks whether a key already exists in a parser-built container with `if (object[key])` instead of `if (key in object)`. When the prior value is a falsy primitive — `false`, `0`, `0n`, `0.0`, `-0`, or `""` — the duplicate-key branch is skipped and the value is silently overwritten by a later sub-table, dotted-key sub-table, or array-of-tables sharing the same name. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
Description
js-toml is a TOML parser for JavaScript, Prior to version 1.1.2, the interpreter checks whether a key already exists in a parser-built container with `if (object[key])` instead of `if (key in object)`. When the prior value is a falsy primitive — `false`, `0`, `0n`, `0.0`, `-0`, or `""` — the duplicate-key branch is skipped and the value is silently overwritten by a later sub-table, dotted-key sub-table, or array-of-tables sharing the same name. Per the TOML 1.0.0 spec ("Defining a key multiple times is invalid"; "You cannot define any key or table more than once"), this should be a parse error. The result is structural type confusion of attacker-named keys in the value returned by `load()`. A boolean-typed `false` (or numeric `0`) becomes a truthy object. Host applications that gate behavior on `if (config.flag)`, `if (!user.banned)`, `if (config.allowDelete)`, or `if (config.publicMode)` will silently take the truthy branch. This is distinct from GHSA-65fc-cr5f-v7r2 (the 1.0.2 prototype-pollution fix). `Object.prototype` is not polluted. The `Object.create(null)` mitigation from 1.0.2 is intact; the bug here is in the duplicate-key state machine, not in container construction. Version 1.1.2 patches the incorrect comparison.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| sunnyadn | js-toml | < 1.1.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-50029?
How severe is CVE-2026-50029?
How do I fix CVE-2026-50029?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-50022Metacat is data repository software that helps researchers p…5.8
- CVE-2026-50023yt-dlp is a command-line audio/video downloader. Prior to 20…9.6
- CVE-2026-50024GitHacker is a tool that restores Git repositories from expo…5.3
- CVE-2026-50025Mousehole is a background service to update a seedbox IP for…6.9
- CVE-2026-50026Frappe is a full-stack web application framework. Prior to v…6.9
- CVE-2026-50027mcp-memory-service is a semantic memory layer for AI applica…9.8
- CVE-2026-5003A vulnerability was found in PromtEngineer localGPT up to 4d…5.5
- CVE-2026-50030DataEase is an open source data visualization and analysis t…7.1
- CVE-2026-50031ipmi-oem in FreeIPMI before 1.6.18 has exploitable buffer ov…7.5
- CVE-2026-50032A NULL pointer dereference in the MMS Write Named Variable L…8.7
- CVE-2026-50033Local privilege escalation due to DLL hijacking vulnerabilit…7.3
- CVE-2026-50034An attacker within BLE communication range can passively int…7.1
Are you affected by CVE-2026-50029?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
