Skip to main content
EPSS 0.5%top 57%

CVE-2026-85730: CWE-606: Unchecked Input for Loop Condition in squirrelchat smol-toml

0
High
VulnerabilityCVE-2026-85730cvecve-2026-85730cwe-606cwe-835
Published: 09/04/2026 (09/04/2026, 15:21:14 UTC)
Source: CVE Database V5
Vendor/Project: squirrelchat
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

squirrelchat

smol-toml

Affected versions
<1.7.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/15/2026, 00:31:13 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses