# CVE-2026-49293: CPU exhaustion via O(n^2) BigInt construction on radix-prefixed integer literals

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-19T18:14:20.150Z
- Modified: 2026-11-04T04:17:37.027Z
- Also known as: GHSA-wp3c-266w-4qfq
- Weaknesses: CWE-400, CWE-407, CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- sunnyadn js-toml: < 1.1.2; before 1.1.1
- js-toml (npm): before 1.1.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/sunnyadn/js-toml/security/advisories/GHSA-wp3c-266w-4qfq> (exploit, mitigation, vendor-advisory, web)
- <https://github.com/sunnyadn/js-toml/commit/1e45ca56ba12e98508f8aae3e31c4aff7603d711> (web)
- <https://github.com/sunnyadn/js-toml/releases/tag/v1.1.2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49293> (advisory)
- <https://github.com/sunnyadn/js-toml> (package)

## Sources

- CVE List: [CVE-2026-49293](https://www.cve.org/CVERecord?id=CVE-2026-49293), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-wp3c-266w-4qfq](https://github.com/advisories/GHSA-wp3c-266w-4qfq), CC-BY-4.0, modified 2026-11-04
- NVD: [CVE-2026-49293](https://nvd.nist.gov/vuln/detail/CVE-2026-49293), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-49293 · Whole record: https://cve.day/CVE-2026-49293.json · Rebuilt by cve.day 2026-11-25T22:59:25.278Z
