GHSA-pmg9-p9r2-6q87
ReDoS via long UserAgent header in ua-parser
Packages
Details
As written in the advisory (Markdown source, shown as plain text).
Affected versions of `ua-parser` are vulnerable to regular expression denial of service when given a specially crafted `User-Agent` header.
## Recommendation
No patch is currently available for this vulnerability.
The best mitigation is currently to avoid using this package, using a different, functionally equivalent package such as [useragent](https://www.npmjs.com/package/useragent).
References
External links from the advisory. They lead to third-party sites.