Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. smol-toml
  4. ›
  5. GHSA-v3rj-xjv7-4jmq

GHSA-v3rj-xjv7-4jmq: smol-toml: Denial of Service via TOML documents containing thousands of consecutive commented lines

March 25, 2026

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.

References

  • github.com/advisories/GHSA-v3rj-xjv7-4jmq
  • github.com/squirrelchat/smol-toml
  • github.com/squirrelchat/smol-toml/releases/tag/v1.6.1
  • github.com/squirrelchat/smol-toml/security/advisories/GHSA-v3rj-xjv7-4jmq

Code Behaviors & Features

Detect and mitigate GHSA-v3rj-xjv7-4jmq with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.1

Fixed versions

  • 1.6.1

Solution

Upgrade to version 1.6.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/smol-toml/GHSA-v3rj-xjv7-4jmq.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:26 +0000.