CVE-2021-21317
Denial of Service in uap-core
Reported by github_m · Published February 16, 2021
uap-core is fixed in 0.11.0 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| uap-core | npm | 0.11.0 |
| uap-core | uap-core_project | 0.11.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ua-parser | uap-core | < 0.11.0 |
| ua-parser | uap-core | 0 |
Timeline
- Feb 2, 2021 CVE Published
- Feb 16, 2021 PoC Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 8, 2024 CVE Updated
- Mar 10, 2026 Security Advisory
- Aug 26, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-21317
vulnetix vdb fixes CVE-2021-21317
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-21317/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart