Cross-Site Scripting in mrk.js
High severity
GitHub Reviewed
Published
Sep 1, 2020
to the GitHub Advisory Database
•
Updated Jan 9, 2023
Description
Reviewed
Aug 31, 2020
Published to the GitHub Advisory Database
Sep 1, 2020
Last updated
Jan 9, 2023
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 anysrc
andhref
attributes when extending the markdown.References