{"id":"GHSA-5ff8-jcf9-fw62","aliases":[],"status":"published","title":"Cross-Site Scripting in markdown-it-katex","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2020-09-04T17:55:35Z","modified":"2023-01-09T05:04:04Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"markdown-it-katex","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"markdown-it-katex","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://github.com/waylonflinn/markdown-it-katex/issues/26","tags":["web"]},{"url":"https://www.npmjs.com/advisories/1466","tags":["web"]},{"url":"https://github.com/advisories/GHSA-5ff8-jcf9-fw62"},{"url":"https://github.com/waylonflinn/markdown-it-katex","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-5ff8-jcf9-fw62","title":"Cross-Site Scripting in markdown-it-katex","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T17:55:35Z","modified":"2023-01-09T05:04:04Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-5ff8-jcf9-fw62","title":"Cross-Site Scripting in markdown-it-katex","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.\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative package until a fix is made available.","status":"published","published":"2020-09-04T17:55:35Z","modified":"2021-10-04T20:53:26Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
