# CVE-2026-77465: toml-node: Uncontrolled Recursion

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 31% of CVEs (2026-12-01)
- Published: 2026-09-03T20:37:22.758Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-82x6-q7mm-w9cf
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

toml-node is a TOML parser for Node.js and the browser. Prior to 4.2.0, toml.parse() uses a Peggy 5.1.0 generated recursive-descent parser in lib/parser.js whose peg$parsevalue, peg$parsearray, and peg$parseinline_table_entry functions recurse through nested arrays and inline tables without a depth limit. A remote unauthenticated application parsing an attacker-controlled TOML document containing a few thousand nested arrays or inline tables can exhaust the Node.js call stack, raise an unexpected RangeError rather than the parser's SyntaxError, and terminate an unprotected request worker or process. The corresponding grammar source is src/toml.pegjs, where the generated parser must be bounded. This issue is fixed in version 4.2.0.

(As written by CVE List.)

## Affected

- BinaryMuse toml-node: < 4.2.0
- toml (npm): before 4.2.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/BinaryMuse/toml-node/security/advisories/GHSA-82x6-q7mm-w9cf> (web)
- <https://github.com/BinaryMuse/toml-node/pull/72> (web)
- <https://github.com/BinaryMuse/toml-node/commit/967b8b06754f3ecd9863cea118dc50792a8c353f> (web)
- <https://github.com/BinaryMuse/toml-node> (package)

## Sources

- CVE List: [CVE-2026-77465](https://www.cve.org/CVERecord?id=CVE-2026-77465), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-82x6-q7mm-w9cf](https://github.com/advisories/GHSA-82x6-q7mm-w9cf), CC-BY-4.0, modified 2026-09-03
- NVD: [CVE-2026-77465](https://nvd.nist.gov/vuln/detail/CVE-2026-77465), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-77465 · Whole record: https://cve.day/CVE-2026-77465.json · Rebuilt by cve.day 2026-11-25T22:59:36.230Z
