React is a widely used npm package. As of 2026-05-24, there are 2 known vulnerabilities in the OSV database. The latest stable version is 19.2.6. Developers should audit their dependency trees and update to patched versions.
Package Overview
Known Vulnerabilities (2)
| ID | Severity | Score | Affected Versions | Fixed In | Description |
|---|---|---|---|---|---|
| GHSA-hg79-j56m-fxgv | HIGH | 7.5 | 0.0.1 to 0.14.0 | 0.14.0 | Cross-Site Scripting in react |
| CVE-2013-7035 | MODERATE | 5.0 | 0.4.0 to 0.4.2; 0.5.0 to 0.5.2 | 0.4.2 | Cross-Site Scripting in react |
Security Recommendations
- Pin React to the latest stable version (19.2.6) in your dependency manifest
- Enable automated dependency updates with Dependabot or Renovate
- Run regular vulnerability scans using
npm audit - Review your lock file (.package-lock.json) after every update
- Monitor the OSV database and NIST NVD for new advisories
FAQ
Is React safe to use?
React is actively maintained and widely used. As of 2026-05-24, there are 2 known vulnerabilities listed in the OSV database. Most have patches available. Keeping your dependencies updated and running regular security audits significantly reduces risk.
What vulnerabilities does React have?
The OSV database currently lists 2 vulnerabilities for React. These range in severity and are detailed in the vulnerability table above. Check the linked advisories for full technical details and remediation guidance.
How do I update React to fix vulnerabilities?
Run npm update react or npm install react@latest to get the newest version. Use npm audit to identify vulnerable dependencies in your project. Enable automated updates with Dependabot or Renovate to stay current.
Using AI-Generated Code with React?
Our vibe coding security audit checks for misconfigurations, exposed secrets and vulnerable dependencies in AI-generated codebases. If your project uses React, we can verify it is locked to a safe version and properly configured.
Get a Vibe Coding Security Audit