{"id":"GHSA-hpr5-wp7c-hh5q","aliases":[],"status":"published","title":"Cross-Site Scripting in mrk.js","description":"Versions of `mrk.js` before 2.0.1 are vulnerable to cross-site scripting (XSS) when markdown is converted to HTML.\n\n\n## Recommendation\n\nUpdate to version 2.0.1 or later and use `mark.sanitizeURL()` for any `src` and `href` attributes when extending the markdown.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2020-09-01T19:37:29Z","modified":"2023-01-09T05:03:45Z","fixes":[{"ecosystem":"npm","package":"mrk.js","fixed_in":["2.0.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mrk.js","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}]},{"source":"osv","ecosystem":"npm","package":"mrk.js","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}]}],"references":[{"url":"https://github.com/heyitsmeuralex/mrk/pull/3","tags":["web"]},{"url":"https://www.npmjs.com/advisories/587","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hpr5-wp7c-hh5q"},{"url":"https://github.com/heyitsmeuralex/mrk","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-hpr5-wp7c-hh5q","title":"Cross-Site Scripting in mrk.js","description":"Versions of `mrk.js` before 2.0.1 are vulnerable to cross-site scripting (XSS) when markdown is converted to HTML.\n\n\n## Recommendation\n\nUpdate to version 2.0.1 or later and use `mark.sanitizeURL()` for any `src` and `href` attributes when extending the markdown.","status":"published","published":"2020-09-01T19:37:29Z","modified":"2023-01-09T05:03:45Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:06.317379Z"}],"osv":[{"id":"GHSA-hpr5-wp7c-hh5q","title":"Cross-Site Scripting in mrk.js","description":"Versions of `mrk.js` before 2.0.1 are vulnerable to cross-site scripting (XSS) when markdown is converted to HTML.\n\n\n## Recommendation\n\nUpdate to version 2.0.1 or later and use `mark.sanitizeURL()` for any `src` and `href` attributes when extending the markdown.","status":"published","published":"2020-09-01T19:37:29Z","modified":"2021-09-23T21:50:21Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:49.28217Z"}]}}
