CVE-2020-1920 is a high-severity (CVSS 7.5) CWE-1333 vulnerability in react-native. A fix is available for react-native — see the affected versions and patch details below.
Regular expression denial of service in react-native
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2020-1920 by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 385,386 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
react-nativenpmDescription
A regular expression denial of service (ReDoS) vulnerability in the validateBaseUrl function can cause the application to use excessive resources, become unresponsive, or crash. This was introduced in react-native version 0.59.0 and fixed in version 0.64.1.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | react-native | ≥ 0.59.0&&< 0.62.3 | 0.62.3npm install react-native@0.62.3 |
| 📦npm | react-native | ≥ 0.63.0&&< 0.64.1 | 0.64.1npm install react-native@0.64.1 |
Affected Products
react-nativefacebookDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for react-native, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update react-native to 0.62.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-1920 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2020-1920 in your dependencies?
Find it across npm, including transitive dependencies.