# GHSA-hpr5-wp7c-hh5q: Cross-Site Scripting in mrk.js

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T19:37:29.000Z
- Modified: 2021-09-23T21:50:21.000Z
- Weaknesses: CWE-79

## 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.

(As written by GitHub Advisory Database.)

## Affected

- mrk.js (npm): before 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)

## Sources

- GitHub Advisory Database: [GHSA-hpr5-wp7c-hh5q](https://github.com/advisories/GHSA-hpr5-wp7c-hh5q), CC-BY-4.0, modified 2021-09-23

---

Page: https://cve.day/GHSA-hpr5-wp7c-hh5q · Whole record: https://cve.day/GHSA-hpr5-wp7c-hh5q.json · Rebuilt by cve.day 2026-11-25T22:56:45.639Z
