CVE-2021-21317 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c | CVE | Patch |
| https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4 | CVE | Third Party Advisory |
| https://www.npmjs.com/package/uap-core | CVE | ProductThird Party Advisory |
| https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c | [email protected] | Patch |
| https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4 | [email protected] | Third Party Advisory |
| https://www.npmjs.com/package/uap-core | [email protected] | ProductThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1333 | Inefficient Regular Expression Complexity | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| uap-core project uap-core | < 0.11.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 8, 2024 | Reanalysis | [email protected] |
| Feb 26, 2021 | Initial Analysis | [email protected] |