TOML Parser Vulnerability in js-toml by Sunnyadn
CVE-2026-49293

7.5HIGH

Key Information:

Vendor

Sunnyadn

Status
Vendor
CVE Published:
19 June 2026

What is CVE-2026-49293?

The js-toml package, a TOML parser for JavaScript, has a vulnerability that can lead to CPU exhaustion when parsing long integer literals. Due to the inefficiency of the parseBigInt function, which performs operations on a BigInt accumulator in a manner that grows quadratically with the input size, a single parsed document containing a large hex literal can monopolize CPU resources. This significantly affects systems that rely on this parser for configuration files in environments like CI/CD processes or development tools. Users are encouraged to upgrade to version 1.1.1 to mitigate this issue.

Affected Version(s)

js-toml < 1.1.1

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.