{"id":"EUVD-2026-38060","enisaUuid":"3c95e8b0-de43-34c3-b14b-594aa37eeec1","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.","datePublished":"Jun 19, 2026, 6:14:20 PM","dateUpdated":"Nov 4, 2026, 3:42:15 AM","baseScore":7.5,"baseScoreVersion":"3.1","baseScoreVector":"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\nhttps://github.com/sunnyadn/js-toml/commit/1e45ca56ba12e98508f8aae3e31c4aff7603d711\nhttps://github.com/sunnyadn/js-toml/releases/tag/v1.1.2\n","aliases":"CVE-2026-49293\nGHSA-wp3c-266w-4qfq\n","assigner":"GitHub_M","epss":0.64,"enisaIdProduct":[{"id":"a3084a79-81f1-3c7e-9b78-80185923af8a","product":{"name":"js-toml","vendor":{"name":"sunnyadn"}},"product_version":"\u003c 1.1.2"}],"enisaIdVendor":[{"id":"6e09a708-1e33-3f00-beed-7b9e80eb3c35","vendor":{"name":"sunnyadn"}}],"enisaIdVulnerability":[{"id":"2a326957-6a99-3bff-b9a3-e36bcde60459","vulnerability":{"id":"GHSA-wp3c-266w-4qfq","description":"js-toml vulnerable to CPU exhaustion via O(n^2) BigInt construction on radix-prefixed integer literals","datePublished":"Jun 26, 2026, 10:21:43 PM","dateUpdated":"Nov 4, 2026, 3:41:49 AM","baseScore":0.0,"references":"https://github.com/sunnyadn/js-toml/security/advisories/GHSA-wp3c-266w-4qfq\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-49293\nhttps://github.com/sunnyadn/js-toml/commit/1e45ca56ba12e98508f8aae3e31c4aff7603d711\nhttps://github.com/sunnyadn/js-toml\nhttps://github.com/sunnyadn/js-toml/releases/tag/v1.1.2\n","enisa_id":"EUVD-2026-38060\n","aliases":"GHSA-wp3c-266w-4qfq\nCVE-2026-49293\n","epss":0.0,"dataProcessed":"Nov 9, 2026, 3:49:45 PM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"af4a8021-9a5d-3f3d-b25b-831decb3f540","vulnerability":{"id":"CVE-2026-49293","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.","datePublished":"Jun 19, 2026, 6:14:20 PM","dateUpdated":"Nov 4, 2026, 3:42:15 AM","status":"PUBLISHED","baseScore":7.5,"baseScoreVersion":"3.1","baseScoreVector":"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\nhttps://github.com/sunnyadn/js-toml/commit/1e45ca56ba12e98508f8aae3e31c4aff7603d711\nhttps://github.com/sunnyadn/js-toml/releases/tag/v1.1.2\n","enisa_id":"EUVD-2026-38060\n","assigner":"GitHub_M","epss":0.64,"dataProcessed":"Nov 13, 2026, 7:23:12 AM","vulnerabilityProduct":[{"id":"9b123979-9338-319c-b373-a2c644df3c76","product":{"name":"js-toml","vendor":{"name":"sunnyadn"}},"product_version":"\u003c 1.1.2"}],"vulnerabilityVendor":[{"id":"f529c8c2-2fd8-3c72-a5d8-cfd0a7a71d8c","vendor":{"name":"sunnyadn"}}]}}],"enisaIdAdvisory":[]}