Skip to main content
← All vulnerabilities
CVE-2021-21317GHSA-P4PJ-MG4R-X6V4

Denial of Service in uap-core

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.11.0
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • ua-parser uap-core

    fixed in 0.11.0

  • uap-corenpm

    fixed in 0.11.0

References 3

GitHub · ua-parser/uap-core

npmjs.com