# CVE-2021-21317: Denial of Service in uap-core

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.55%, higher than 85% of CVEs (2026-12-01)
- Published: 2021-02-02T15:46:38.000Z
- Modified: 2026-07-08T06:27:33.229Z
- Also known as: GHSA-p4pj-mg4r-x6v4
- Weaknesses: CWE-400, CWE-1333
- Assigned by: GitHub_M

## Description

uap-core in an open-source npm package which contains the core of BrowserScope's original user agent string parser. In uap-core before version 0.11.0, some regexes are vulnerable to regular expression denial of service (REDoS) due to overlapping capture groups. This allows remote attackers to overload a server by setting the User-Agent header in an HTTP(S) request to maliciously crafted long strings. This is fixed in version 0.11.0. Downstream packages such as uap-python, uap-ruby etc which depend upon uap-core follow different version schemes.

(As written by CVE List.)

## Affected

- ua-parser uap-core: < 0.11.0
- uap-core (npm): before 0.11.0
- uap-core_project uap-core: before 0.11.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4> (third-party-advisory, web)
- <https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c> (patch, web)
- <https://www.npmjs.com/package/uap-core> (product, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-21317> (advisory)
- <https://github.com/ua-parser/uap-core> (package)

## Sources

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

---

Page: https://cve.day/CVE-2021-21317 · Whole record: https://cve.day/CVE-2021-21317.json · Rebuilt by cve.day 2026-11-25T22:57:59.963Z
