CVE-2025-7969 Markdown-it 14.1.0 - Cross-site scripting (XSS)
Cross-site scripting vulnerability in markdown-it allows attackers to inject malicious scripts into web pages rendered by the library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-7969?
CVE-2025-7969 is a medium-severity cross-site scripting vulnerability in markdown-it, published on 21 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in markdown-it allows Cross-Site Scripting (XSS). This vulnerability is associated with program files lib/renderer.mjs.
This issue affects markdown-it: 14.1.0. NOTE: the Supplier does not consider this issue to be a vulnerability.
Weakness: CWE-79
Which versions are affected by CVE-2025-7969?
It affects 1 product.
Products include Markdown-It Project Markdown-It.
How do I fix CVE-2025-7969?
No fix has been published for CVE-2025-7969 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2025-7969 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7969 exists.
Other vulnerabilities in markdown-it
- CVE-2026-2327 markdown-it is has a Regular Expression Denial of Service (ReDoS)
- CVE-2026-48988 markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
- CVE-2022-21670 Uncontrolled Resource Consumption in markdown-it
- CVE-2015-3295 Cross-site scripting in n/a
- CVE-2015-10005 markdown-it html_re.js redos
Sources
Also known as DEBIAN-CVE-2025-7969, GHSA-vgm8-mvfh-rj89, UBUNTU-CVE-2025-7969.