6.5med
CVE-2013-7035
Cross-Site Scripting in react
Also known as GHSA-g53w-52xc-2j85
Published 6 y ago · modified 3 y ago · JSON
CVSS
6.5
v3.1 · GitHub
CISA KEV
No
not known exploited
EPSS
—
no score (CVEs only)
Public exploits
0
none known
Summary
Affected versions of `react` are vulnerable to Cross-Site Scripting (XSS). The package fails to properly sanitize input used to create keys. This may allow attackers to execute arbitrary JavaScript if a key is generated from user input.
## Recommendation
If you are using `react` 0.5.x, upgrade to version 0.5.2 or later. If you are using `react` 0.4.x, upgrade to version 0.4.2 or later.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | react | >=0.4.0, <0.4.2 >=0.5.0, <0.5.2 | 0.4.2 0.5.2 |
Classification
- Weakness
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
- React (RSS, critical only)
References
- nvd.nist.gov /vuln/detail/CVE-2013-7035 · advisory
- github.com /facebook/react/commit/393a889aaceb761f058b09a701f889fa8f8b4e64 · web
- github.com /facebook/react/commit/94a9a3e752fe089ab23f3a90c26d20d46d62ab10 · web
- github.com /facebook/react · package
- reactjs.org /blog/2013/12/18/react-v0.5.2-v0.4.2.html · web
- snyk.io /vuln/npm:react:20131217 · web
Sources
- GitHub Advisory: GHSA-g53w-52xc-2j85
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.