Skip to content

Cross-Site Scripting in mrk.js

High severity GitHub Reviewed Published Sep 1, 2020 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

npm mrk.js (npm)

Affected versions

< 2.0.1

Patched versions

2.0.1

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.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 1, 2020
Last updated Jan 9, 2023

Severity

High

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-hpr5-wp7c-hh5q

Source code

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.