GitHub Advisoryadvisory · npm
GHSA-m7qm-r2r5-f77q Cross-Site Scripting in react-marked-markdown
HIGH
Official page ↗
- Ecosystem
- npm
- Packages
- react-marked-markdown
- Severity
- High
- Weaknesses
- CWE-79
- Reviewed
- 2020-08-31
Affected packages
• npm react-marked-markdown: >= 0.0.0 (no fix yet)
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`
Proof of concept:
```
import React from 'react'
import ReactDOM from 'react-dom'
import { MarkdownPreview } from 'react-marked-markdown'
ReactDOM.render(
,
document.getElementById('root')
)
```
Recommendation
No 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.
Related
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness