5.4medium
Cross-site Scripting in React Draft Wysiwyg
- Severity
- 5.4medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.79% (higher than 57% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-qcg2-h349-vwm3
Description
react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a javascript: URi in a Link Target of the link decorator in decorators/Link/index.js when a draft is shared across users, leading to XSS.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| react-draft-wysiwyg (npm) | before 1.14.6 | GitHub Advisory Database |
| react_draft_wysiwyg_project react_draft_wysiwyg | before 1.14.6 | NVD |
All scores
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
Classification
What each source says
CVE List
react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a javascript: URi in a Link Target of the link decorator in decorators/Link/index.js when a draft is shared across users, leading to XSS.
GitHub Advisory Database
react-draft-wysiwyg (aka React Draft Wysiwyg) before 1.14.6 allows a javascript: URi in a Link Target of the link decorator in decorators/Link/index.js when a draft is shared across users, leading to XSS.
NVD (es)
react-draft-wysiwyg (también se conoce como React Draft Wysiwyg) versiones anteriores a 1.14.6, permite un URI javascript: en un Link Target del decorador de enlaces en el archivo decorators/Link/index.js cuando un borrador se comparte entre usuarios, conllevando a un ataque de tipo XSS
References
| https://github.com/jpuri/react-draft-wysiwyg/issues/1102 | exploit, issue-tracking, third-party-advisory, web | |
| https://github.com/jpuri/react-draft-wysiwyg/pull/1104 | patch, third-party-advisory, web | |
| https://github.com/jpuri/react-draft-wysiwyg/commit/d2faeb612b53f10dff048de7dc57e1f4044b5380 | patch, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31712 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31712 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qcg2-h349-vwm3 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-31712 changed 2026-06-17 | Public domain |