# CVE-2020-26311: GHSL-2020-312: Regular Expression Denial of Service (ReDoS) in useragent

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Green`
- 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): 0.52%, higher than 45% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-26T20:26:35.087Z
- Modified: 2026-06-17T03:08:03.297Z
- Also known as: GHSA-mgfv-m47x-4wqp
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Useragent is a user agent parser for Node.js. All versions as of time of publication contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS). As of time of publication, no patches are available.

(As written by CVE List.)

## Affected

- 3rd-Eden useragent: 0
- useragent_project useragent: before *
- useragent (npm): up to 2.3.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Green`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green`
- 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`

## References

- <https://securitylab.github.com/advisories/GHSL-2020-312-redos-useragent/> (exploit, third-party-advisory)
- <https://github.com/3rd-Eden/useragent/issues/167> (issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-26311> (advisory)
- <https://github.com/3rd-Eden/useragent/commit/4c3ee79358bea72d88fe78ac98f4f861db40b89b> (web)
- <https://github.com/3rd-Eden/useragent> (package)
- <https://github.com/3rd-Eden/useragent/blob/ffa906f923183c85fbb9e6c90f19345e2bd3c52a/lib/regexps.js#L5568> (web)
- <https://securitylab.github.com/advisories/GHSL-2020-312-redos-useragent> (advisory)

## Sources

- CVE List: [CVE-2020-26311](https://www.cve.org/CVERecord?id=CVE-2020-26311), CVE Terms of Use, modified 2024-10-28
- GitHub Advisory Database: [GHSA-mgfv-m47x-4wqp](https://github.com/advisories/GHSA-mgfv-m47x-4wqp), CC-BY-4.0, modified 2025-09-03
- NVD: [CVE-2020-26311](https://nvd.nist.gov/vuln/detail/CVE-2020-26311), Public domain, modified 2026-06-17

---

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