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

> An attacker can crash the host application by sending a specific 3-byte input that triggers infinite recursion and memory exhaustion in the marked parser.

- **Severity:** High 8.7 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 24 Apr 2026
- **Updated:** 24 Apr 2026
- **Also known as:** CLSA-2026-1792775729, GHSA-6v9c-7cg6-27q7, MINI-4h6w-gpx3-5jw6

## What is CVE-2026-41680?

CVE-2026-41680 is a high-severity denial of service vulnerability in markedjs marked, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official 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.

Weakness: CWE-835 (Loop with Unreachable Exit Condition), CWE-674 (Uncontrolled Recursion), CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2026-41680?

2 open source packages ship an affected version, including marked. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `marked` | npm | From 18.0.0 | 18.0.2 |
| `marked` | npm | From 18.0.0 | 18.0.2 |

Products: Marked Project Marked.

## How do I fix CVE-2026-41680?

Upgrade marked to 18.0.2 or later.

## Is CVE-2026-41680 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41680 exists.

## Other vulnerabilities in markedjs marked

- [CVE-2017-16114](https://insights.sbomify.com/CVE-2017-16114/): Regular Expression Denial of Service in marked (high 7.5)
- [CVE-2018-25110](https://insights.sbomify.com/CVE-2018-25110/): Regular Expression Denial of Service (ReDoS) in markedjs/marked (medium 6.9)
- [CVE-2014-3743](https://insights.sbomify.com/CVE-2014-3743/): Multiple Content Injection Vulnerabilities in marked (medium 6.1)
- [CVE-2016-10531](https://insights.sbomify.com/CVE-2016-10531/): Sanitization bypass using HTML Entities in marked (medium 6.1)
- [CVE-2017-1000427](https://insights.sbomify.com/CVE-2017-1000427/): Marked vulnerable to XSS from data URIs (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-41680 and fix it if it is affected.

What it is: CVE-2026-41680 is a high-severity denial of service vulnerability in markedjs marked, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-41680 exists.

Affected packages and fixed versions:
- marked (npm): affected from 18.0.0; fixed in 18.0.2
- marked (npm): affected from 18.0.0; fixed in 18.0.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-41680/ (Markdown: https://insights.sbomify.com/CVE-2026-41680/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-41680
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-41680
- OSV: https://osv.dev/vulnerability/CVE-2026-41680

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-41680/
Summaries are generated and may contain mistakes; the official description above is the record.
