High · 8.7 Node.js & npm CVE-2026-114141 GHSA-4qx8-w7c3-pj3p CVE-2026-114143 GHSA-9j65-hcg3-gc64
toml-node: Three Denial-of-Service Flaws Let Attackers Freeze Node.js Apps via TOML Parsing
Three related CVEs in the toml npm package (toml-node) allow unauthenticated attackers to block the Node.js event loop or exhaust memory by submitting specially crafted TOML documents to toml.parse(). All three are fixed in version 5.0.1.
By PatchBriefing · ·
Produced automatically from official sources with the help of AI. How we work →
- NVD (NIST) database 1mo ago · view ↗
- NVD (NIST) database 4w ago · view ↗
- NVD (NIST) database 3w ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- GitHub Advisory Database database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
- OSV.dev database 1mo ago · view ↗
AI summary
Three separate vulnerabilities have been disclosed in toml-node, a TOML parser for Node.js and browser environments. All affect the toml.parse() function and allow an attacker to supply a crafted TOML document that causes excessive, synchronous CPU work inside the parser. Because Node.js runs JavaScript on a single thread, this can block the event loop and deny service to other operations running in the same process. All three issues affect versions up to and including 5.0.0 and are fixed in 5.0.1.
What happened
Three distinct denial-of-service vulnerabilities were identified in the toml npm package's toml.parse() function. CVE-2026-114141 (GHSA-4qx8-w7c3-pj3p) is caused by the addTableArray() function in lib/compiler.js, which rescans the full set of tracked paths for every array-of-tables header ([[name]]) in a document, resulting in quadratic-time processing for documents with many such headers. CVE-2026-114143 (GHSA-9j65-hcg3-gc64) stems from repeated slicing and rejoining of path prefixes in assign(), deepRef(), and setNestedKey() while processing long dotted keys, table headers, array-of-tables headers, or inline-table keys, which can block the event loop for several seconds and, with sufficiently long paths, exhaust memory and terminate the process. The advisory also notes that the maxDepth option does not limit the number of key segments and therefore does not mitigate this issue. CVE-2026-114144 (GHSA-9qmh-m7c6-f92p) occurs because unbounded-length hexadecimal, octal, binary, and decimal digit sequences are passed to BigInt() in lib/parser.js before reduceInteger() in lib/compiler.js checks whether the value fits the TOML 64-bit integer range; the conversion itself consumes super-linear CPU time, and the later range check cannot prevent this cost because it runs after the conversion.
Technical cause
All three vulnerabilities are classified as inefficient-algorithm or uncontrolled-resource-consumption issues (CWE-407 and CWE-400). CVE-2026-114141 and CVE-2026-114143 both result in quadratic-complexity processing within the compiler stage of toml.parse(), triggered by the number or length of distinct paths in a document. CVE-2026-114144 results from performing an expensive BigInt conversion on attacker-controlled digit sequences before any length or range validation takes place, so the cost of the conversion itself cannot be avoided by downstream range checks.
Why it matters
Any application that calls toml.parse() on input an attacker can influence - for example configuration uploads, plugin manifests, or user-submitted TOML files - is potentially exposed. Because Node.js processes JavaScript on a single event-loop thread, synchronous CPU-intensive parsing can stall all other requests and operations handled by that process, producing a denial-of-service condition. No data confidentiality or integrity impact is indicated for any of the three issues; the impact is limited to availability.
Who is affected
Any project depending on the toml npm package at version 5.0.0 or earlier is affected by all three vulnerabilities. This includes any Node.js or browser-based application that parses TOML documents - including those from external or untrusted sources - using this library.
Affected versions
All versions of the toml package up to and including 5.0.0 are affected by CVE-2026-114141, CVE-2026-114143, and CVE-2026-114144. Version 5.0.1 contains fixes for all three issues.
Fixes and mitigation
The vendor update to toml version 5.0.1 resolves all three vulnerabilities. The fact package does not describe any workaround short of upgrading; in particular, it explicitly notes that the maxDepth option does not mitigate CVE-2026-114143.
Recommended action
Update the toml package to version 5.0.1 as soon as possible in any project where this library parses TOML input, especially input that may originate from untrusted or external sources. Since no partial mitigation is described in the available facts, treat the upgrade as the primary remediation step.
PatchBriefing score
8.7 / 10 · High
Official CVSS: 8.7
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS 0.0051 (36 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- toml <= 5.0.0
- vulnerable
- toml ≥ 0 < 5.0.1
- vulnerable
- ≥ 5.0.1
- patched
- toml <= 5.0.0
- vulnerable
- toml ≥ 0 < 5.0.1
- vulnerable
- ≥ 5.0.1
- patched
- toml <= 5.0.0
- vulnerable
- toml ≥ 0 < 5.0.1
- vulnerable
- ≥ 5.0.1
- patched
Reported fixes
The vendor update to toml version 5.0.1 resolves all three vulnerabilities. The fact package does not describe any workaround short of upgrading; in particular, it explicitly notes that the maxDepth option does not mitigate CVE-2026-114143.
How this was built
9 source records were collected, matched and used to prepare the report above.
-
NVD (NIST) database
-
NVD (NIST) database
-
NVD (NIST) database
-
GitHub Advisory Database database
-
GitHub Advisory Database database
-
GitHub Advisory Database database
Revision history
- Published
- Generated
- Published
- Generated
- Published
- Generated