GHSA-hpr5-wp7c-hh5q
high
Cross-Site Scripting in mrk.js
- Severity
- high rating by GitHub
- Published
- Last changed
Description
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
| Product or package | Versions | Reported by |
|---|---|---|
| mrk.js (npm) | before 2.0.1 | GitHub Advisory Database |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-hpr5-wp7c-hh5q changed 2021-09-23 | CC-BY-4.0 |