CVE-2021-21317
MEDIUM 5.3CVSS 3.1Denial of Service in uap-core
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.
- Published
- 16 Feb 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-p4pj-mg4r-x6v4
- Sources
- NVDJSONOSV GHSA-p4pj-mg4r-x6v4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | uap-core_project | uap-corecpe:2.3:a:uap-core_project:uap-core:*:*:*:*:*:node.js:*:* |
< 0.11.0 | 0.11.0 |
| OSV | npm | uap-core | < 0.11.0 | 0.11.0 |
References
- https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c · Patch, WEB
- https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4 · Third Party Advisory, 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
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 16 Feb 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Feb 2021)