# CVE-2020-7661: Regular expression denial of service in url-regex

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.67%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-06-04T17:15:32.000Z
- Modified: 2026-06-17T03:25:13.177Z
- Also known as: GHSA-v4rh-8p82-6h5w
- Weaknesses: CWE-400
- Assigned by: snyk

## Description

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.

(As written by CVE List.)

## Affected

- url-regex: all versions
- url-regex (npm): up to 5.0.0
- url-regex_project url-regex: no versions given

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 7.8 High `AV:N/AC:L/Au:N/C:N/I:N/A:C`

## References

- <https://github.com/kevva/url-regex/issues/70> (exploit, third-party-advisory, web)
- <https://snyk.io/vuln/SNYK-JS-URLREGEX-569472> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-7661> (advisory)
- <https://github.com/kevva/url-regex> (package)

## Sources

- CVE List: [CVE-2020-7661](https://www.cve.org/CVERecord?id=CVE-2020-7661), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-v4rh-8p82-6h5w](https://github.com/advisories/GHSA-v4rh-8p82-6h5w), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2020-7661](https://nvd.nist.gov/vuln/detail/CVE-2020-7661), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-7661 · Whole record: https://cve.day/CVE-2020-7661.json · Rebuilt by cve.day 2026-11-25T22:57:52.730Z
