# CVE-2026-85730: smol-toml: Denial of Service via malformed TOML documents

- Severity: High 8.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- 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.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-04T15:21:14.948Z
- Modified: 2026-09-09T21:09:13.080Z
- Also known as: GHSA-7w5x-hrqm-74c2
- Weaknesses: CWE-606, CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

smol-toml is a small, fast, and correct TOML parser and serializer. Prior to 1.7.1, parse() can enter an infinite loop when a value inside an array or inline table is followed by a comment with no trailing newline. In src/util.ts, skipUntil() calls indexOfNewline(), receives -1 at the end of input, and resets the cursor to the beginning of the string instead of leaving the structure scan. The parser then hangs indefinitely and can consume a service's processing capacity when an application parses attacker-controlled TOML. This issue is fixed in version 1.7.1.

(As written by CVE List.)

## Affected

- squirrelchat smol-toml: < 1.7.1
- smol-toml (npm): before 1.7.1

## Every score

- GitHub_M: CVSS:4.0 8.2 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-7w5x-hrqm-74c2> (exploit, web)
- <https://github.com/squirrelchat/smol-toml/commit/30f5c367d946b695f379b5d4f0946b2f0a0a8c2f> (web)
- <https://github.com/squirrelchat/smol-toml/releases/tag/v1.7.1> (web)
- <https://medium.com/@ravindu.lakmina1/seven-bytes-that-freeze-a-node-js-server-forever-the-story-of-cve-2026-85730-3213328b38f0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85730> (advisory)
- <https://github.com/squirrelchat/smol-toml> (package)

## Sources

- CVE List: [CVE-2026-85730](https://www.cve.org/CVERecord?id=CVE-2026-85730), CVE Terms of Use, modified 2026-09-09
- GitHub Advisory Database: [GHSA-7w5x-hrqm-74c2](https://github.com/advisories/GHSA-7w5x-hrqm-74c2), CC-BY-4.0, modified 2026-09-09
- NVD: [CVE-2026-85730](https://nvd.nist.gov/vuln/detail/CVE-2026-85730), Public domain, modified 2026-09-09

---

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