ADVISORIES

Vulnerability

CVE-2021-21317

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.

2 advisories report this vulnerability, across 2 ecosystems.

Medium severity All Ubuntu 1npm 1

Advisories

  • GHSA-p4pj-mg4r-x6v4

    Denial of Service in uap-core

    High CVE-2021-21317 npm Updated 8 July 2026
  • UBUNTU-CVE-2021-21317

    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…

    CVE-2021-21317 Ubuntu Updated 17 October 2026

References