{"id":"CVE-2026-85730","published":"2026-09-04T15:21:14Z","modified":"2026-09-09T16:34:08Z","title":"smol-toml: Denial of Service via malformed TOML documents","vendor":"squirrelchat","product":"smol-toml","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.37787,"provenance":"source"},"cwes":[{"id":"CWE-606","name":"Unchecked Input for Loop Condition"},{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"references":[{"url":"https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-7w5x-hrqm-74c2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/squirrelchat/smol-toml/commit/30f5c367d946b695f379b5d4f0946b2f0a0a8c2f","tags":["x_refsource_MISC"]},{"url":"https://github.com/squirrelchat/smol-toml/releases/tag/v1.7.1","tags":["x_refsource_MISC"]},{"url":"https://medium.com/@ravindu.lakmina1/seven-bytes-that-freeze-a-node-js-server-forever-the-story-of-cve-2026-85730-3213328b38f0","tags":["x_refsource_MISC"]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":7.56},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"squirrelchat","affectedVersions":[{"vendor":"squirrelchat","product":"smol-toml","versions":["< 1.7.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-04T17:40:28.815540Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"smol-toml","vulnerableRanges":["<1.7.1"],"patched":["1.7.1"],"from":["GHSA-7w5x-hrqm-74c2"],"provenance":"source"}],"summary":{"text":"The smol-toml TOML parser and serializer from squirrelchat contains a flaw in its parse() function, in the src/util.ts skipUntil() logic, where a value inside an array or inline table followed by a comment with no trailing newline sends the parser into an infinite loop. An attacker who can get an application using smol-toml to parse a crafted TOML document can cause the parser to hang indefinitely and exhaust the service's processing capacity, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:52Z"},"euvd":{"id":"EUVD-2026-71261","exploited":false,"provenance":"source"}}