CVE-2026-114143: Npm/toml-node vulnerability

Published Oct 21, 2026
·
Updated

toml-node is a TOML parser for Node.js and the browser. Prior to 5.0.1, toml.parse() repeatedly slices and rejoins every path prefix in lib/compiler.js while processing long dotted keys, table headers, array-of-tables headers, and inline-table keys in assign(), deepRef(), and setNestedKey(). The resulting quadratic work can block the Node.js event loop for several seconds, and sufficiently long paths can terminate the process through memory exhaustion. The maxDepth option does not limit key-segment count and therefore does not mitigate this path. This issue is fixed in version 5.0.1.

Affected Software

1 affected component
npm/toml-node<5.0.1

Event History

Oct 21, 2026
CVE Published
via MITRE·08:31 PM
Data Sourced
via MITRE·08:31 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using toml-node versions before 5.0.1 are exposed when they parse TOML input containing very long dotted-key paths, table headers, array-of-tables headers, or inline-table keys. This can affect both Node.js and browser consumers of the parser.

2

What does an attacker need to exploit it?

An attacker needs the application to parse crafted TOML containing sufficiently long key paths. Processing those paths can consume quadratic work, blocking the Node.js event loop for several seconds, and may exhaust memory and terminate the process.

3

Does configuring maxDepth mitigate the issue?

No. The maxDepth option does not limit the number of key segments, so it does not mitigate the vulnerable long-path processing.

4

What is the remediation?

Upgrade toml-node to version 5.0.1, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203