smol-toml is vulnerable to Uncontrolled Recursion
25
Low Risk
Affected versions of the smol-toml package are vulnerable to a denial of service due to unbounded recursion when parsing or stringifying deeply nested inline structures. An attacker can craft a malicious TOML input to trigger a stack overflow and crash the application. The library does not impose a maximum depth limit for parsing or stringifying, increasing the risk of availability issues. The patched version introduces a configurable depth cap (default: 1000) to mitigate this, but nevertheless, users are advised to wrap parse and stringify calls in try/catch blocks when handling untrusted input.
You are affected if you are using a version that falls within the vulnerable range.
smol-toml is vulnerable to Uncontrolled Recursion in versions 1.0.0 - 1.3.2.
Upgrade the smol-toml library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant