Unchecked Input for Loop Condition Affecting smol-toml package, versions <1.7.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-SMOLTOML-19643959
  • published8 Sept 2026
  • disclosed4 Sept 2026
  • creditRavi-lk

Introduced: 4 Sep 2026

NewCVE-2026-85730  (opens in a new tab)
CWE-606  (opens in a new tab)

How to fix?

Upgrade smol-toml to version 1.7.1 or higher.

Overview

smol-toml is an A small, fast, and correct TOML parser/serializer

Affected versions of this package are vulnerable to Unchecked Input for Loop Condition due to the skipUntil comment-skipping logic in src/util.ts. An attacker can hang parse() by supplying a TOML document with a value in an array or inline table followed by a # comment that runs to end of input without a trailing newline. The parser gets stuck in an internal loop while searching for the end of the structure, pinning CPU and preventing the application from completing TOML parsing.

CVSS Base Scores

version 4.0
version 3.1