PT-2026-51007 · Npm · Js-Toml
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
js-toml versions prior to 1.1.1
Description
The software contains a quadratic time complexity issue during the parsing of hexadecimal, octal, and binary integer literals. This occurs because the
parseBigInt() function uses a loop that performs a BigInt * BigInt operation for each input digit, resulting in O(n²) CPU consumption relative to the literal length. Since the lexer regex does not limit the length of these literals, an attacker can provide a specially crafted TOML document to cause CPU exhaustion, leading to a Denial of Service (DoS). This affects callers using the load() function on untrusted input, such as configuration upload endpoints or CI/CD systems.Recommendations
Update to version 1.1.1.
Exploit
Fix
DoS
Resource Exhaustion
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Js-Toml