Vulnerabilities/

js-toml vulnerable to CPU exhaustion via O(n^2) BigInt construction on radix-prefixed integer literals

Severity:
High

Description

js-toml versions up to and including 1.1.0 parse hexadecimal / octal / binary integer literals via a hand-written parseBigInt loop that multiplies a BigInt accumulator by the radix once per input digit.

Recommendation

Update the js-toml package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
js-toml
Anything's wrong? Let us know Last updated on June 26, 2026