Live threats

All CVEs / Url-regex Project

CVE-2020-7661Url-regex Project Url-regex

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.7%
probability of exploitation in 30 days · percentile 87
Auth required
No
Published
Jun 4, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

all versions of url-regex are vulnerable to Regular Expression Denial of Service. An attacker providing a very long string in String.test can cause a Denial of Service.

Original NVD text.

What to do

  1. Apply the vendor's security update for Url-regex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm url-regex ≤ 5.0.0 no fixed version —

Per OSV / GitHub Advisories (GHSA-v4rh-8p82-6h5w). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
url-regex_projecturl-regexall

Official sources

References

Links published by the sources. Open them with care.