Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. marked
  4. ›
  5. CVE-2026-41680

CVE-2026-41680: Marked Vulnerable to OOM Denial of Service via Infinite Recursion in marked Tokenizer

April 29, 2026

A critical Denial of Service (DoS) vulnerability exists in marked@18.0.0. By providing a specific 3-byte input sequence a tab, a vertical tab, and a newline (\x09\x0b\n)—an unauthenticated attacker can trigger an infinite recursion loop during parsing. This leads to unbounded memory allocation, causing the host Node.js application to crash via Memory Exhaustion (OOM).

References

  • github.com/advisories/GHSA-6v9c-7cg6-27q7
  • github.com/markedjs/marked/security/advisories/GHSA-6v9c-7cg6-27q7
  • nvd.nist.gov/vuln/detail/CVE-2026-41680

Code Behaviors & Features

Detect and mitigate CVE-2026-41680 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 18.0.0 before 18.0.2

Fixed versions

  • 18.0.2

Solution

Upgrade to version 18.0.2 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-674: Uncontrolled Recursion
  • CWE-835: Loop with Unreachable Exit Condition ('Infinite Loop')

Source file

npm/marked/CVE-2026-41680.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:57 +0000.