GitHub Advisory Database
GHSA-7f53-fmmv-mfjv
Regular expression denial of service in react-native
Details
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 | Affected versions |
|---|---|---|
| npm | react-native | From 0.59.0 before 0.62.3 (fixed in 0.62.3) |
| npm | react-native | From 0.63.0 before 0.64.1 (fixed in 0.64.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-1920
- https://github.com/facebook/react-native/commit/ca09ae82715e33c9ac77b3fa55495cf84ba891c7
- https://github.com/facebook/react-native/releases/tag/v0.62.3
- https://github.com/facebook/react-native/releases/tag/v0.64.1
- https://securitylab.github.com/advisories/GHSL-2020-293-redos-react-native
- https://www.npmjs.com/package/react-native