Security Audit

React Security Audit

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

Package
react
Ecosystem
npm
Latest Version
19.2.6
License
MIT
Description
React is a JavaScript library for building user interfaces.
Repository
https://github.com/facebook/react
Homepage
https://react.dev/

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

  1. Pin React to the latest stable version (19.2.6) in your dependency manifest
  2. Enable automated dependency updates with Dependabot or Renovate
  3. Run regular vulnerability scans using npm audit
  4. Review your lock file (.package-lock.json) after every update
  5. 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

Related Resources