7.5high

CVE-2020-1920

Regular expression denial of service in react-native

Also known as GHSA-7f53-fmmv-mfjv

Published 5 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.1 · NVD
CISA KEV
No
not known exploited
EPSS
1.4%
percentile 72%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

1.36% probability of exploitation in the next 30 days, higher than 72% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD2.05.0AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub3.17.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

EcosystemPackageAffectedFixed in
npmreact-native
>=0.59.0, <0.62.3
>=0.63.0, <0.64.1
0.62.3
0.64.1

Affected products

  • Facebook react-native

Classification

Weakness
  • CWE-1333 Inefficient Regular Expression Complexity
  • CWE-697 Incorrect Comparison
  • CWE-400 Uncontrolled Resource Consumption

References

  • github.com /facebook/react-native/releases/tag/v0.64.1 · x_refsource_CONFIRM, x_transferred
  • github.com /facebook/react-native/commit/ca09ae82715e33c9ac77b3fa55495cf84ba891c7 · x_refsource_MISC, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2020-1920 · advisory
  • github.com /facebook/react-native/releases/tag/v0.62.3 · web
  • securitylab.github.com /advisories/GHSL-2020-293-redos-react-native · advisory
  • npmjs.com /package/react-native · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.