PT-2026-51007 · Npm · Js-Toml

·

CVE-2026-49293

·

Published

2026-06-19

·

Updated

2026-06-26

CVSS v3.1

7.5

High

VectorAV: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 👾

Weakness Enumeration

Related Identifiers

CVE-2026-49293
GHSA-WP3C-266W-4QFQ

Affected Products

Js-Toml