{"id":"CVE-2021-27292","published":"2021-03-17T12:34:48Z","modified":"2024-08-03T20:48:16Z","title":"ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service","vendor":null,"product":null,"tier":"tail","description":{"text":"ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to denial of service. If an attacker sends a malicious User-Agent header, ua-parser-js will get stuck processing it for an extended period of time.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03366,"percentile":0.89033,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/b-c-ds/6941d80d6b4e694df4bc269493b7be76","tags":["x_refsource_MISC"]},{"url":"https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":17.81}]},"affected":[{"ecosystem":"npm","package":"ua-parser-js","vulnerableRanges":[">=0.7.14, <0.7.24"],"patched":["0.7.24"],"from":["GHSA-78cj-fxph-m83p"],"provenance":"source"}],"summary":{"text":"The flaw is a regular expression in the ua-parser-js library (versions 0.7.14 up to, but not including, the fixed release 0.7.24) that is vulnerable to denial of service. An attacker who can send a crafted User-Agent header to an application using the affected library can cause the parser to stall on it for an extended period.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:28Z"},"euvd":{"id":"EUVD-2021-0991","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pygments-cve-2021-27291","children":[{"from":"CVE-2021-27292","to":"CVE-2022-40896","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pygments/lexers/templates.py"],"commits":["https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14","https://github.com/pygments/pygments/commit/97eb3d5ec7c1b3ea4fcf9dee30a2309cf92bd194","https://github.com/pygments/pygments/commit/dd52102c38ebe78cd57748e09f38929fd283ad04"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2020-7733","published":"2020-09-16","fixed":"0.7.22","kev":false},{"cve":"CVE-2020-7793","published":"2020-12-11","fixed":"0.7.23","kev":false,"link":{"from":"CVE-2020-7793","to":"CVE-2021-27292","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:ua-parser-js","fromFixed":"0.7.23","toFixed":"0.7.24","daysApart":96},{"kind":"same-code","provenance":"machine","files":["src/ua-parser.js"],"commits":["https://github.com/faisalman/ua-parser-js/commit/6d1f26df051ba681463ef109d36c9cf0f7e32b18","https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566"],"basis":"shared file"}]}},{"cve":"CVE-2021-27292","published":"2021-03-17","fixed":"0.7.24","kev":false},{"cve":"CVE-2021-4229","published":"2022-05-24","fixed":"1.0.1","kev":false},{"cve":"CVE-2022-25927","published":"2023-01-25","fixed":"1.0.33","kev":false},{"cve":"CVE-2026-48125","published":"2026-07-14","fixed":"2.0.10","kev":false}],"package":"npm:ua-parser-js"}}