CVE-2026-85730

smol-toml: Denial of Service via malformed TOML documents

Published Sep 4, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

smol-toml is a lightweight TOML parser. A logic flaw in its parse() function causes an infinite loop when a comment follows a value in an array or inline table without a trailing newline. The loop never exits, causing the parsing process to consume processing capacity indefinitely and leading to a denial of service. The vulnerability directly compromises the integrity of the service’s availability, as an attacker can repeatedly submit malicious TOML documents to exhaust system resources. The flaw is a classic example of unchecked input handling and resource exhaustion.

Affected Systems

The affected product is smol-toml, distributed by squirrelchat. All releases prior to v1.7.1 contain the vulnerability; the bug was fixed in commit 30f5c367d946b695f379b5d4f0946b2f0a0a8c2f and released in v1.7.1. Applications that parse TOML input using any version older than 1.7.1 are potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.2 indicates high severity. EPSS is not available, and the issue is not listed in CISA’s KEV catalog. The vulnerability requires an attacker to supply malformed TOML input; if an application accepts such input from a remote source, the attacker can trigger the infinite loop and cause a denial of service. The likely attack vector is remote, through any interface that accepts TOML data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade smol-toml to version 1.7.1 or later.
  • Disable or sandbox the parsing of untrusted TOML data until the upgrade is applied.
  • Add input validation to reject malformed TOML before it reaches the parser to mitigate the risk of resource exhaustion.

Generated by OpenCVE AI on September 4, 2026 at 18:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-7w5x-hrqm-74c2 smol-toml: Denial of Service via malformed TOML documents
History
Type Values Removed Values Added
First Time appeared Squirrelchat
Squirrelchat smol-toml
Vendors & Products Squirrelchat
Squirrelchat smol-toml
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title smol-toml: Denial of Service via malformed TOML documents
Weaknesses CWE-606
CWE-835
References
Metrics cvssV4_0

{'score': 8.2, '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'}

Weaknesses
  • CWE-606

    Unchecked Input for Loop Condition

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 9, 2026, 4:34 PM
Reserved
Sep 4, 2026, 2:45 PM
Status
Deferred
Published
Sep 4, 2026, 4:18 PM
Modified
Sep 9, 2026, 9:09 PM
Severity
Important
Public date
Sep 4, 2026, 3:21 PM