Description
Affected versions of useragent are vulnerable to regular expression denial of service when an arbitrarily long User-Agent header is parsed.
Recommendation
Update the useragent package to the latest compatible version. Followings are version details:
- Affected version(s): <= 2.1.12
- Patched version(s): 2.1.13
References
Could your website be exposed too?
SmartScanner can check your website for ReDoS via long UserAgent header in useragent and gives you actionable findings to investigate.
Start a free scanRelated Issues
- ReDoS via long UserAgent header in ua-parser - CVE-2017-16086
- SvelteKit: ReDoS (O(n^2)) in content negotiation — unauthenticated DoS via the Accept header - CVE-2026-66062
- Axios: Header Injection via Prototype Pollution - CVE-2026-42035
- Angular SSR is vulnerable to SSRF and Header Injection via request handling pipeline - CVE-2026-27739
You might also like:
See something that needs correcting? Let us knowUpdated September 06, 2023


