CVE-2021-27292 in Ua-Parser-Js Project Ua-Parser-Js
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.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, no integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Ua-Parser-Js Project | Ua-Parser-Js | ≥ 0.7.14, < 0.7.24 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-27292 |
|---|---|
| BreachSpider ID | BS-2021-GLOBAL-080650-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Published | 2021-03-17 |
| Last modified | 2024-11-21 |
| Source | NVD |
Analysis AI-written, not human-reviewed
A regular expression vulnerability in ua-parser-js versions 0.7.14 and above, up to but not including 0.7.24, can lead to a denial of service (DoS) attack when processing malicious User-Agent headers.
An attacker can craft a specially designed User-Agent header that causes the regular expression in ua-parser-js to enter a state of excessive backtracking, leading to high CPU usage and potential application unavailability.
Questions
What is CVE-2021-27292?
A regular expression vulnerability in ua-parser-js versions 0.7.14 and above, up to but not including 0.7.24, can lead to a denial of service (DoS) attack when processing malicious User-Agent headers.
What is the CVSS score for CVE-2021-27292?
CVE-2021-27292 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. EPSS: 3.4%.
Is CVE-2021-27292 actively exploited?
No confirmed active exploitation of CVE-2021-27292 as of 2026-05-30.
How do I remediate CVE-2021-27292?
Priority: HIGH.
What systems are affected by CVE-2021-27292?
CVE-2021-27292 affects Ua-Parser-Js Project Ua-Parser-Js.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Ua-Parser-Js Project","product":"Ua-Parser-Js","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.