{"id":"GHSA-hpr5-wp7c-hh5q","summary":"Cross-Site Scripting in mrk.js","details":"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.","modified":"2021-09-23T21:50:21Z","published":"2020-09-01T19:37:29Z","database_specific":{"github_reviewed_at":"2020-08-31T18:28:53Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/heyitsmeuralex/mrk/pull/3"},{"type":"PACKAGE","url":"https://github.com/heyitsmeuralex/mrk"},{"type":"WEB","url":"https://www.npmjs.com/advisories/587"}],"affected":[{"package":{"name":"mrk.js","ecosystem":"npm","purl":"pkg:npm/mrk.js"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-hpr5-wp7c-hh5q/GHSA-hpr5-wp7c-hh5q.json"}}],"schema_version":"1.9.0"}