Vulnerability library
Security checkJune 26, 2026

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

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmjs-toml

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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:

  • Affected version(s): <= 1.1.0
  • Patched version(s): 1.1.1

References

Could your website be exposed too?

SmartScanner can check your website for js-toml vulnerable to CPU exhaustion via O(n^2) BigInt construction on radix-prefixed integer literals and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 26, 2026