# CVE-2021-27292: Regular Expression Denial of Service (ReDoS) in ua-parser-js

- 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): 3.37%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-17T12:34:48.000Z
- Modified: 2026-06-17T03:44:37.440Z
- Also known as: GHSA-78cj-fxph-m83p
- Weaknesses: CWE-400
- Assigned by: mitre

## Description

ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ua-parser-js (npm): from 0.7.14 before 0.7.24
- ua-parser-js_project ua-parser-js: from 0.7.14 before 0.7.24

## 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 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://gist.github.com/b-c-ds/6941d80d6b4e694df4bc269493b7be76> (exploit, third-party-advisory, web)
- <https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14> (patch, third-party-advisory, web)
- <https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27292> (advisory)

## Sources

- CVE List: [CVE-2021-27292](https://www.cve.org/CVERecord?id=CVE-2021-27292), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-78cj-fxph-m83p](https://github.com/advisories/GHSA-78cj-fxph-m83p), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-27292](https://nvd.nist.gov/vuln/detail/CVE-2021-27292), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27292 · Whole record: https://cve.day/CVE-2021-27292.json · Rebuilt by cve.day 2026-11-25T22:58:00.311Z
