CVE-2026-49293 json
CPU exhaustion via O(n^2) BigInt construction on radix-prefixed integer literals
published 2026-06-19 4 mo ago modified 2026-11-04 5 d ago also GHSA-wp3c-266w-4qfq , EUVD-2026-38060
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
js-toml is a TOML parser for JavaScript, fully compliant with the TOML 1.0.0 Spec. Versions up to and including 1.1.1 parse hexadecimal / octal / binary integer literals via a hand-written `parseBigInt` loop that multiplies a `BigInt` accumulator by the radix once per input digit. Each iteration performs a `BigInt * BigInt` operation on an accumulator that grows linearly with the number of digits already consumed, so the whole loop is O(n²) in the literal length. The lexer regex places no upper bound on the literal length, so a single TOML document containing one ~500 kB hex literal pins one CPU core for ~40 seconds on a modern laptop (Apple M-series, Node v22). Memory amplification is bounded but CPU amplification is severe and grows quadratically: doubling the literal length quadruples the work. A caller that invokes `load()` on attacker-controlled TOML (configuration upload endpoints, CI/CD systems ingesting third-party `*.toml`, IDE plugins, build tools) is exposed to a single-request CPU exhaustion DoS. Version 1.1.2 fixes the issue.
Patch / fix
- npm js-toml 1.1.2
- sunnyadn js-toml 1.1.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/sunnyadn/js-toml/security/advisories/GHSA-wp3c-266w-4qfq referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | js-toml | <1.1.2 |
1.1.2 |
Affected products
- sunnyadn js-toml
Classification
References
-
github.com
/sunnyadn/js-toml/commit/1e45ca56ba12e98508f8aae3e31c4aff7603d711
web
-
github.com
/sunnyadn/js-toml/security/advisories/GHSA-wp3c-266w-4qfq
exploit, web, mitigation, vendor-advisory
-
github.com
/sunnyadn/js-toml/releases/tag/v1.1.2
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-49293
advisory
-
github.com
/sunnyadn/js-toml
package
Sources
- CVE List CVE-2026-49293
- GitHub Advisory GHSA-wp3c-266w-4qfq
- NVD CVE-2026-49293
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.