CVE-2020-1920 is a vulnerability in Facebook React Native
Published on June 1, 2021
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.
Weakness Type
What is a ReDoS Vulnerability?
The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles. Some regular expression engines have a feature called "backtracking". If the token cannot match, the engine "backtracks" to a position that may result in a different token that can match. Backtracking becomes a weakness if all of these conditions are met:
CVE-2020-1920 has been classified to as a ReDoS vulnerability or weakness.
Products Associated with CVE-2020-1920
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2020-1920 are published in Facebook React Native:
Affected Versions
Facebook react-native:- Version 0.64.1 and below unspecified is unaffected.
- Version 0.59.0 and below unspecified is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.