Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. smol-toml
  4. ›
  5. GHSA-pqhp-25j4-6hq9

GHSA-pqhp-25j4-6hq9: smol-toml has a Denial of Service via malicious TOML document using deeply nested inline tables

November 22, 2024

An attacker can send a maliciously crafted TOML to cause the parser to crash because of a stack overflow caused by a deeply nested inline structure. A similar problem occurs when attempting to stringify deeply nested objects.

The library does not limit the maximum exploration depth while parsing or producing TOML documents, nor does it offer a way to do so.

References

  • github.com/advisories/GHSA-pqhp-25j4-6hq9
  • github.com/squirrelchat/smol-toml
  • github.com/squirrelchat/smol-toml/commit/405108ba090f0fc78f99aa2f0d6721e499b0ff27
  • github.com/squirrelchat/smol-toml/security/advisories/GHSA-pqhp-25j4-6hq9

Code Behaviors & Features

Detect and mitigate GHSA-pqhp-25j4-6hq9 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.3.1

Fixed versions

  • 1.3.1

Solution

Upgrade to version 1.3.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-pqhp-25j4-6hq9.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:14:46 +0000.