All CVEs / Ua-parser-js Project
CVE-2021-27292Ua-parser-js Project Ua-parser-js
High 7.5 No auth needed
Follow: this CVE · Ua-parser-js Project · Ua-parser-js Project Ua-parser-js We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 3.4% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Mar 17, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ua-parser-js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ua-parser-js |
≥ 0.7.14 < 0.7.24 |
0.7.24 |
npm install ua-parser-js@0.7.24 |
Per OSV / GitHub Advisories (GHSA-78cj-fxph-m83p). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ua-parser-js_project | ua-parser-js | ≥ 0.7.14 < 0.7.24 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Patch Third Party Advisory