Wiz Agents & Workflows are here
Vulnerability DatabaseGHSA-v3rj-xjv7-4jmq

GHSA-v3rj-xjv7-4jmq
JavaScript vulnerability analysis and mitigation

Summary

An attacker can send a maliciously crafted TOML to cause the parser to crash, because of a stack overflow caused by thousands of consecutive commented lines. The library uses recursion internally while parsing to skip over commented lines, which can be exploited to crash an application that is processing arbitrary TOML documents.

Proof of concept

require("smol-toml").parse('# comment\n'.repeat(8000) + 'key = "value"')

Impact

Applications which parse arbitrary TOML documents may suffer availability issues if they receive malicious input. If uncaught, the crash may cause the application itself to crash. The impact is deemed minor, as the function is already likely to throw errors on invalid input. Downstream users are supposed to properly handle errors in such situations. Due to the design of most JavaScript runtimes, the uncontrolled recursion does not lead to excessive memory usage and the execution is quickly aborted. As a reminder, it is strongly advised when working with untrusted user input to expect errors to occur and to appropriately catch them.

Patches

Version 1.6.1 uses a different approach for parsing comments, which no longer involves recursion.

Workarounds

Wrap all invocations of parse and stringify in a try/catch block when dealing with untrusted user input.


SourceNVD

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-33287HIGH7.5
  • JavaScriptJavaScript
  • liquidjs
NoNoMar 26, 2026
CVE-2026-33285HIGH7.5
  • JavaScriptJavaScript
  • liquidjs
NoNoMar 26, 2026
CVE-2026-33671HIGH7.5
  • JavaScriptJavaScript
  • picomatch
NoYesMar 25, 2026
CVE-2026-33672MEDIUM5.3
  • JavaScriptJavaScript
  • picomatch
NoYesMar 25, 2026
GHSA-v3rj-xjv7-4jmqMEDIUM5.3
  • JavaScriptJavaScript
  • smol-toml
NoYesMar 25, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management