{"id":"GHSA-5ff8-jcf9-fw62","aliases":["GHSA-5ff8-jcf9-fw62"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in markdown-it-katex","summary":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","format":"markdown","source":"ghsa"}],"published":"2020-09-04T17:55:35.000Z","modified":"2021-10-04T20:53:26.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","status":"affected"}],"ecosystem":"npm","package":"markdown-it-katex","purl":"pkg:npm/markdown-it-katex","source":"ghsa"}],"references":[{"url":"https://github.com/waylonflinn/markdown-it-katex/issues/26","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/waylonflinn/markdown-it-katex","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/1466","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5ff8-jcf9-fw62","url":"https://github.com/advisories/GHSA-5ff8-jcf9-fw62","licence":"CC-BY-4.0","modified":"2021-10-04T20:53:26.000Z"}],"updatedAt":"2026-11-25T22:56:44.174Z"}