Skip to main content

marked CVE-2026-41680

| EUVDEUVD-2026-25585 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-04-24 GitHub_M GHSA-6v9c-7cg6-27q7
8.7
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify target using marked 18.0.x
  2. Delivery
    Send HTTP request with \x09\x0b\n payload
  3. Exploit
    Trigger marked.parse() call
  4. Execution
    Infinite recursion exhausts Node.js heap
  5. Persist
    OOM crash terminates process
  6. Impact
    Service unavailable

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions required-remote unauthenticated exploitation against default configurations of marked 18.0.0 or 18.0.1 in any deployment. The vulnerability triggers whenever the affected versions parse the specific 3-byte sequence through the standard marked.parse() or marked.parseInline() API calls, regardless of parser options, extensions, or configuration. Limiting factors: exploitation requires the application to accept and process markdown input from untrusted sources (user uploads, API endpoints, webhooks), and the application must actually invoke the marked parser on attacker-controlled data. Applications that only parse markdown from trusted internal sources or sanitize input to remove vertical tab characters before parsing are not exploitable. The vulnerability is version-specific-only installations running exactly version 18.0.0 or 18.0.1 are affected, which represents a brief release window that limits the potential victim population.

Impact

This is a critical-priority vulnerability for organizations exposing markdown parsing to untrusted input. The CVSS v4.0 vector (AV:N/AC:L/PR:N/UI:N/VA:H) confirms network-accessible attack surface with low complexity and no authentication requirement, making it trivially exploitable. The attack is fully automatable-attackers can send the 3-byte payload to any HTTP endpoint that processes markdown (user comments, documentation generators, CMS platforms, API documentation renderers) and immediately crash the service. While no EPSS or KEV data is provided, the simplicity of the exploit input (publicly disclosed in GitHub advisory GHSA-6v9c-7cg6-27q7) means proof-of-concept code requires no specialized tooling. Real-world risk is high for internet-facing services but constrained to availability impact only-no data theft or code execution. The narrow affected version range (18.0.0-18.0.1) limits exposure window, but organizations running these specific versions face certain denial of service if markdown parsing is reachable. Patch availability in 18.0.2 makes this immediately remediable, elevating priority for emergency patching. Conflict note: CVSS reflects complete availability loss, justifying high severity despite single-dimension impact.

Exploit ScenarioDerived

An attacker identifies a web application using marked 18.0.1 for rendering user-submitted markdown in forum posts or API documentation. The attacker crafts an HTTP POST request with a comment body containing only three bytes: \x09\x0b\n (tab, vertical tab, newline). When the Node.js backend invokes marked.parse() on this input, the parser enters infinite recursion, allocating memory until the process crashes with 'JavaScript heap out of memory'. All concurrent users lose access to the service. The attacker can automate repeated attacks to maintain permanent denial of service with minimal bandwidth, as the 3-byte payload is trivial to generate and transmit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 24, 2026

Unauthenticated remote attackers can crash Node.js applications using marked versions 18.0.0-18.0.1 by sending a specially crafted 3-byte sequence (tab, vertical tab, newline). The infinite recursion loop exhausts memory and triggers an out-of-memory crash, enabling complete denial of service against any exposed markdown parsing endpoint. Vendor-released patch fixes the vulnerability in version 18.0.2. No public exploit identified at time of analysis, though the attack input is trivially simple and reproducible. CVSS v4.0 8.7 reflects high availability impact with network reachability and no authentication barriers.

RemediationAI

Upgrade marked to version 18.0.2 immediately, as confirmed by the GitHub security advisory at https://github.com/markedjs/marked/security/advisories/GHSA-6v9c-7cg6-27q7. For Node.js projects using npm, execute 'npm update marked' or explicitly set package.json dependency to '>=18.0.2'. For yarn users, run 'yarn upgrade marked'. If immediate upgrade is blocked by dependency conflicts, implement compensating controls: deploy input validation to reject markdown containing vertical tab characters (U+000B) before passing to the parser, accepting the trade-off of potentially rejecting legitimate edge-case content; configure Node.js memory limits via --max-old-space-size flag to contain blast radius, though this only converts crashes to controlled restarts; or isolate markdown parsing in separate worker processes with health monitoring and automatic restart policies to maintain service availability during attacks. All workarounds carry operational overhead and do not eliminate the vulnerability-patching to 18.0.2 remains the only complete remediation.

Affected VersionsENISA

marked 18.0.0, < 18.0.2

Affected Packages

npm marked fix: 18.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in marked, a widely-used JavaScript markdown parser and compiler for Node.js environments (CPE: cpe:2.3:a:markedjs:marked). The root cause is classified as CWE-400 (Uncontrolled Resource Consumption), specifically manifesting as infinite recursion during the parsing phase. When the parser encounters the byte sequence \x09\x0b\n (horizontal tab U+0009, vertical tab U+000B, line feed U+000A), the lexer or tokenizer enters an unbounded recursive call stack. Each recursion allocates additional memory without termination conditions, escalating until the Node.js runtime exhausts available heap space and triggers an OOM (out-of-memory) exception. This is a classic algorithmic complexity vulnerability where malformed input exploits inefficient state machine handling in the parser, causing O(∞) time and space complexity from a constant 3-byte input.

Know when Marked gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
PoC Detected
Apr 28, 2026 - 19:37 vuln.today
Public exploit code
Patch released
Apr 28, 2026 - 19:37 nvd
Patch available
Patch available
Apr 24, 2026 - 19:01 EUVD
CVSS changed
Apr 24, 2026 - 18:22 NVD
8.7 (HIGH)
CVE Published
Apr 24, 2026 - 17:26 nvd
HIGH 8.7

DescriptionCVE.org

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.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 13 npm packages depend on marked (12 direct, 1 indirect)

Ecosystem-wide dependent count for version 18.0.0.

Executive ViewAI

Why It Matters

CVE-2026-41680 affects marked, a widely-used Node.js markdown parsing library (versions 18.0.0-18.0.1), enabling unauthenticated attackers to crash applications through a 3-byte input sequence. Organizations using vulnerable versions in production markdown processing workflows-including documentation portals, content platforms, and API endpoints-face immediate denial of service risk with zero authentication required. Immediate patching to version 18.0.2 is critical to restore service availability.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not feasible: disable or restrict external access to markdown parsing endpoints; implement rate limiting and input validation on markdown processing endpoints to reject payloads containing consecutive whitespace sequences; monitor application logs for out-of-memory errors and service restarts as early indicators of exploitation attempts.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy