Skip to content
OpenAdvisories
High · 8.2 CVE-2026-85730 EUVD-2026-71261GHSA-7w5x-hrqm-74c2

smol-toml: Denial of Service via malformed TOML documents

Published Sep 4, 2026 · Updated Sep 9, 2026 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
squirrelchat smol-toml < 1.7.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3-compat 3.225.7-r6 —
Wolfi rolling langfuse-3-worker 3.225.7-r5 —
Wolfi rolling lerna 10.0.1-r3 —
Wolfi rolling prism 5.16.0-r10 —
Wolfi rolling renovate 44.94.0-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm smol-toml < 1.7.1 1.7.1 GHSA-7w5x-hrqm-74c2

References