CVE-2020-1920
JavaScript vulnerability analysis and mitigation

Overview

A regular expression denial of service (ReDoS) vulnerability was discovered in the validateBaseUrl function of react-native. The vulnerability was introduced in version 0.59.0 and fixed in version 0.64.1. The issue was assigned CVE-2020-1920 and was reported through Facebook's Whitehat program (GitHub Security Lab, NVD).

Technical details

The vulnerability exists in the validateBaseUrl function which uses a regex pattern based on a MIT-licensed gist for URL validation. The regular expression was vulnerable to exponential backtracking, leading to potential denial of service. The issue received a CVSS v3.1 Base Score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability could cause the application to use excessive resources, become unresponsive, or crash. The issue affects systems where the validateBaseUrl function is used with user-provided input (GitHub Security Lab).

Exploitability

The vulnerability can be triggered by providing specially crafted input to the validateBaseUrl function. A proof of concept demonstrates that malicious URLs can cause the regular expression engine to enter an exponential backtracking state (GitHub Security Lab).

Mitigation and workarounds

The vulnerability was fixed in react-native version 0.64.1 by updating the validateBaseUrl function to use a more robust regular expression pattern. Users should upgrade to version 0.64.1 or later to receive the security fix (React Native Release).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-54504HIGH8.8
  • JavaScript logoJavaScript
  • @andrea9293/mcp-documentation-server
NoYesSep 17, 2026
CVE-2026-77615HIGH8.7
  • JavaScript logoJavaScript
  • paella-core
NoYesSep 17, 2026
CVE-2026-91127HIGH8.2
  • JavaScript logoJavaScript
  • @file-viewer/doc
NoYesSep 18, 2026
CVE-2026-77301HIGH7.5
  • JavaScript logoJavaScript
  • adm-zip
NoYesSep 18, 2026
CVE-2026-84992MEDIUM6.1
  • JavaScript logoJavaScript
  • md-editor-v3
NoYesSep 18, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management