GHSA-hpr5-wp7c-hh5q
HIGHCross-Site Scripting in mrk.js
Versions of mrk.js before 2.0.1 are vulnerable to cross-site scripting (XSS) when markdown is converted to HTML.
Recommendation
Update to version 2.0.1 or later and use mark.sanitizeURL() for any src and href attributes when extending the markdown.
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | mrk.js | < 2.0.1 | 2.0.1 |
References
- https://github.com/heyitsmeuralex/mrk/pull/3 · WEB
- https://github.com/heyitsmeuralex/mrk · PACKAGE
- https://www.npmjs.com/advisories/587 · WEB
History
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Sep 2020)