Home / sunnyadn / js-toml / CVE-2026-50029
CVE-2026-50029: is it exploited, and which versions of sunnyadn js-toml are affected and fixed?
CVE-2026-50029 is an incorrect comparison vulnerability in sunnyadn js-toml. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: js-toml before 1.1.2 (GitHub advisory GHSA-m34p-749j-x6m6). Fixed in 1.1.2 (GitHub advisory GHSA-m34p-749j-x6m6). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:08 UTC.
What is CVE-2026-50029?
js-toml has silent type confusion via falsy-primitive duplicate-key bypass
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.
From the CVE record by GitHub_M, last updated August 17, 2026, 19:34 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| sunnyadn | js-toml | < 1.1.2 |
As the CVE record by GitHub_M states it, last updated August 17, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | js-toml | < 1.1.2 | 1.1.2 | GHSA-m34p-749j-x6m6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 21, 2026. Summary: js-toml has silent type confusion via falsy-primitive duplicate-key bypass.
How severe is CVE-2026-50029?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-50029 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, August 17, 2026)
- EPSS
- 0.23% probability of exploitation activity in the next 30 days, percentile 15.1 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-697 Incorrect Comparison
Where are the vendor advisories and references?
- https://github.com/sunnyadn/js-toml/security/advisories/GHSA-m34p-749j-x6m6 x_refsource_CONFIRM
- https://github.com/sunnyadn/js-toml/commit/e0504fa5d3dcde2d1d588c9001c24b7b700beeeb x_refsource_MISC
- https://github.com/sunnyadn/js-toml/releases/tag/v1.1.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- June 2, 2026
- Published
- August 14, 2026, 19:08 UTC
- CVE record updated
- August 17, 2026, 19:34 UTC by GitHub_M
- NVD
- Deferred, last modified September 18, 2026, 20:09 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect js-toml?
- Sep 22, 2026CVE-2026-63386 sunnyadn js-toml: uncontrolled recursion
- Jun 19, 2026CVE-2026-49293 sunnyadn js-toml: denial of service (uncontrolled resource consumption)
- Aug 5, 2025CVE-2025-54803 sunnyadn js-toml: prototype pollution
Questions about CVE-2026-50029
Is CVE-2026-50029 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.23% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of sunnyadn js-toml are affected by CVE-2026-50029?
js-toml before 1.1.2, per the GitHub advisory GHSA-m34p-749j-x6m6. The tables above give every range the sources list.
Which version fixes CVE-2026-50029?
1.1.2, per the GitHub advisory GHSA-m34p-749j-x6m6. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-50029?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-50029?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.