Unchecked Input for Loop Condition Affecting langfuse-4 package, versions <4.32.0-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.38% (32nd 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-CHAINGUARDLATEST-LANGFUSE4-19685166
  • published11 Sept 2026
  • disclosed4 Sept 2026

Introduced: 4 Sep 2026

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

How to fix?

Upgrade Chainguard langfuse-4 to version 4.32.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream langfuse-4 package and not the langfuse-4 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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 Base Scores

version 3.1