CVE-2020-1920 Regular expression denial of service in react-native
Attackers can cause application crashes or unresponsiveness via ReDoS in the validateBaseUrl function of the React Native library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-1920?
CVE-2020-1920 is a high-severity denial of service vulnerability in Facebook react-native, published on 1 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Which versions are affected by CVE-2020-1920?
4 open source packages ship an affected version, including react-native. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
react-native npm | From 0.59.0 | 0.62.3 |
react-native npm | From 0.59.0 | 0.62.3 |
react-native npm | From 0.63.0 | 0.64.1 |
react-native npm | From 0.63.0 | 0.64.1 |
Products include Facebook React-Native.
How do I fix CVE-2020-1920?
Upgrade react-native to a fixed version for your release line: 0.62.3 or 0.64.1.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2020-1920 being exploited?
There is no known exploitation of CVE-2020-1920 in the wild and no public exploit code.
Sources
Also known as GHSA-7f53-fmmv-mfjv.