Skip to content
OpenAdvisories
Medium · 5.3 CVE-2021-21317 EUVD-2021-0561GHSA-p4pj-mg4r-x6v4

Denial of Service in uap-core

Published Feb 16, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ua-parser uap-core < 0.11.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 uap-core No fix yet —
Ubuntu 26.04 LTS uap-core No fix yet —
Ubuntu 25.10 uap-core No fix yet —
Ubuntu 24.04 LTS uap-core No fix yet —
Ubuntu 22.04 LTS uap-core No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS uap-core No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
npm uap-core < 0.11.0 0.11.0 GHSA-p4pj-mg4r-x6v4

References