{"id":"GHSA-hpr5-wp7c-hh5q","aliases":["GHSA-hpr5-wp7c-hh5q"],"related":[],"kind":"vulnerability","state":"published","title":"Cross-Site Scripting in mrk.js","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2020-09-01T19:37:29.000Z","modified":"2021-09-23T21:50:21.000Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"npm","package":"mrk.js","purl":"pkg:npm/mrk.js","source":"ghsa"}],"references":[{"url":"https://github.com/heyitsmeuralex/mrk/pull/3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/heyitsmeuralex/mrk","tags":["package"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/advisories/587","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hpr5-wp7c-hh5q","url":"https://github.com/advisories/GHSA-hpr5-wp7c-hh5q","licence":"CC-BY-4.0","modified":"2021-09-23T21:50:21.000Z"}],"updatedAt":"2026-11-25T22:56:45.639Z"}