# GHSA-5ff8-jcf9-fw62: Cross-Site Scripting in markdown-it-katex

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:55:35.000Z
- Modified: 2021-10-04T20:53:26.000Z
- Weaknesses: CWE-79

## Description

All versions of `markdown-it-katex` are vulnerable to Cross-Site Scripting (XSS). The package fails to properly escape error messages, which may allow attackers to execute arbitrary JavaScript in a victim's browser by triggering an error.


## Recommendation

No fix is currently available. Consider using an alternative package until a fix is made available.

(As written by GitHub Advisory Database.)

## Affected

- markdown-it-katex (npm): from 0.0.0

## References

- <https://github.com/waylonflinn/markdown-it-katex/issues/26> (web)
- <https://github.com/waylonflinn/markdown-it-katex> (package)
- <https://www.npmjs.com/advisories/1466> (web)

## Sources

- GitHub Advisory Database: [GHSA-5ff8-jcf9-fw62](https://github.com/advisories/GHSA-5ff8-jcf9-fw62), CC-BY-4.0, modified 2021-10-04

---

Page: https://cve.day/GHSA-5ff8-jcf9-fw62 · Whole record: https://cve.day/GHSA-5ff8-jcf9-fw62.json · Rebuilt by cve.day 2026-11-25T22:56:44.174Z
