Skip to content
OpenAdvisories
High · 8.7 CVE-2026-41680 EUVD-2026-25585GHSA-6v9c-7cg6-27q7

Marked: OOM Denial of Service via Infinite Recursion in marked Tokenizer

Published Apr 24, 2026 · Updated Apr 24, 2026 · Assigned by GitHub_M

Description

Marked is a markdown parser and compiler. From 18.0.0 to 18.0.1, a critical Denial of Service (DoS) vulnerability exists in marked. 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). This vulnerability is fixed in 18.0.2.

Affected products

VendorProductAffectedFixed
markedjs marked >= 18.0.0, < 18.0.2 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm marked >= 18.0.0, < 18.0.2 18.0.2 GHSA-6v9c-7cg6-27q7

References