CVE-2020-28455 Cross-site Scripting (XSS)
An attacker can inject malicious scripts via unescaped table of contents titles and headers in the markdown-it-toc 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-2020-28455?
CVE-2020-28455 is a high-severity cross-site scripting vulnerability in markdown-it-toc, published on 25 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects all versions of package markdown-it-toc. The title of the generated toc and the contents of the header are not escaped.
Weakness: CWE-79
Which versions are affected by CVE-2020-28455?
2 open source packages ship an affected version, including markdown-it-toc. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
markdown-it-toc npm | All versions to 1.1.0 | None |
markdown-it-toc npm | All versions to 1.1.0 | None |
Products include Markdown-It-Toc Project Markdown-It-Toc.
How do I fix CVE-2020-28455?
No fix has been published for CVE-2020-28455 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-2020-28455 being exploited?
There is no known exploitation of CVE-2020-28455 in the wild and no public exploit code.
Sources
Also known as GHSA-wfvx-fx73-3rfj.