VDB

CVE-2021-21317

CVE-2021-21317 PUBLISHED CVSS 5.3 MEDIUM

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.

PackageEcosystemFixed in
uap-corenpm0.11.0
uap-coreuap-core_project0.11.0

Risk scores

CVSS 3.1
5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected products

VendorProductVersions
ua-parseruap-core< 0.11.0
ua-parseruap-core0

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

References

  • x_refsource_CONFIRM
  • x_refsource_MISC
  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›