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.
Remediation
References
https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c
https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4
https://www.npmjs.com/package/uap-core
Related Vulnerabilities
CVE-2020-26296 Vulnerability in maven package org.webjars.bower:vega
CVE-2018-1999005 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2020-28459 Vulnerability in npm package markdown-it-decorate
CVE-2021-3856 Vulnerability in maven package org.keycloak:keycloak-services
CVE-2022-45143 Vulnerability in maven package org.apache.tomcat:tomcat-util