{"id":"CVE-2026-85730","state":"PUBLISHED","title":"smol-toml: Denial of Service via malformed TOML documents","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.","publishedAt":"2026-09-04T15:21:14.948Z","updatedAt":"2026-09-09T16:34:08.718Z","severity":{"score":8.2,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["squirrelchat smol-toml"],"affected":[{"vendor":"squirrelchat","product":"smol-toml","versions":[{"version":"< 1.7.1","status":"affected"}]}],"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"],"weaknesses":["CWE-606","CWE-835"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/85xxx/CVE-2026-85730.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-85730","state":"PUBLISHED","datePublished":"2026-09-04T15:21:14.948Z","dateUpdated":"2026-09-09T16:34:08.718Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-04T14:45:10.649Z"},"containers":{"cna":{"title":"smol-toml: Denial of Service via malformed TOML documents","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"squirrelchat","product":"smol-toml","versions":[{"version":"< 1.7.1","status":"affected"}]}],"references":[{"url":"https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-7w5x-hrqm-74c2","name":"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","name":"https://github.com/squirrelchat/smol-toml/commit/30f5c367d946b695f379b5d4f0946b2f0a0a8c2f","tags":["x_refsource_MISC"]},{"url":"https://github.com/squirrelchat/smol-toml/releases/tag/v1.7.1","name":"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","name":"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"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.2,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-606","lang":"en","description":"CWE-606: Unchecked Input for Loop Condition","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-835","lang":"en","description":"CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-09T16:34:08.718Z"},"source":{"advisory":"GHSA-7w5x-hrqm-74c2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/squirrelchat/smol-toml/security/advisories/GHSA-7w5x-hrqm-74c2","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-04T17:40:28.815540Z","id":"CVE-2026-85730","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-04T17:40:50.595Z"}}]}}}