{"id":"CVE-2021-21317","published":"2021-02-16T17:45:16Z","modified":"2024-08-03T18:09:15Z","title":"Denial of Service in uap-core","vendor":"ua-parser","product":"uap-core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02548,"percentile":0.85403,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/ua-parser/uap-core/security/advisories/GHSA-p4pj-mg4r-x6v4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ua-parser/uap-core/commit/dc9925d458214cfe87b93e35346980612f6ae96c","tags":["x_refsource_MISC"]},{"url":"https://www.npmjs.com/package/uap-core","tags":["x_refsource_MISC"]}],"priority":{"score":20.8,"factors":[{"name":"EPSS percentile","points":17.08},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"ua-parser","affectedVersions":[{"vendor":"ua-parser","product":"uap-core","versions":["< 0.11.0"]}],"affected":[{"ecosystem":"npm","package":"uap-core","vulnerableRanges":["<0.11.0"],"patched":["0.11.0"],"from":["GHSA-p4pj-mg4r-x6v4"],"provenance":"source"}],"summary":{"text":"The uap-core component of the ua-parser project, an open-source npm package containing the core user agent string parser, has a regular expression denial of service flaw in some of its regexes caused by overlapping capture groups, present before version 0.11.0. A remote attacker with no authentication, no user interaction and no special configuration can overload a server by sending HTTP(S) requests whose User-Agent header is a maliciously crafted long string.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:12Z"},"euvd":{"id":"EUVD-2021-0561","exploited":false,"provenance":"source"}}