Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Uap-Core Project | Uap-Core | < 0.11.0 |
Related Weaknesses (CWE)
References
- https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6Patch
- https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4Third Party Advisory
- https://www.npmjs.com/package/uap-coreProductThird Party Advisory
- https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6Patch
- https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4Third Party Advisory
- https://www.npmjs.com/package/uap-coreProductThird Party Advisory
FAQ
What is CVE-2021-21317?
CVE-2021-21317 is a vulnerability with a CVSS score of 5.3 (MEDIUM). 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...
How severe is CVE-2021-21317?
CVE-2021-21317 has been rated MEDIUM with a CVSS base score of 5.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-21317?
Check the references section above for vendor advisories and patch information. Affected products include: Uap-Core Project Uap-Core.