CVE-2026-85730: CWE-606: Unchecked Input for Loop Condition in squirrelchat smol-toml
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.
CVSS v4.0
Score 8.2high
Affected software
squirrelchat
smol-toml
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The smol-toml parser in squirrelchat versions before 1.7.1 contains an unchecked input vulnerability (CWE-606) that can cause an infinite loop during parsing. Specifically, in src/util.ts, the skipUntil() function calls indexOfNewline(), which returns -1 at the end of input. Instead of terminating the scan, the parser resets the cursor to the start of the string, causing an infinite loop. This flaw allows an attacker to craft TOML input that causes the parser to hang indefinitely, consuming processing capacity. The vulnerability is addressed and fixed in version 1.7.1.
Potential Impact
An attacker can cause a denial of service by supplying specially crafted TOML input that triggers an infinite loop in the parser, leading to resource exhaustion and service disruption. There is no indication of code execution or data corruption, but the service's processing capacity can be significantly impacted.
Mitigation Recommendations
Upgrade to smol-toml version 1.7.1 or later, where this infinite loop vulnerability is fixed. No other mitigation is required as the issue is resolved in the official patch.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-04T14:45:10.649Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a9ae5d4acd9273b49ce3ba9
Added to database: 09/04/2026, 15:37:56 UTC
Last enriched: 09/15/2026, 00:31:13 UTC
Last updated: 10/19/2026, 06:48:20 UTC
Views: 107
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.