Live threats

All CVEs / Uap-core Project

CVE-2021-21317Uap-core Project Uap-core

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.5%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Feb 16, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Uap-core.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm uap-core < 0.11.0 0.11.0 npm install uap-core@0.11.0

Per OSV / GitHub Advisories (GHSA-p4pj-mg4r-x6v4). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
uap-core_projectuap-core< 0.11.0

Official sources

References

Links published by the sources. Open them with care.