CVE-2021-27292
HIGH 7.5CVSS 3.1Regular Expression Denial of Service (ReDoS) in 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.
- Published
- 17 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-400
- Also known as
- GHSA-78cj-fxph-m83p
- Sources
- NVDJSONOSV GHSA-78cj-fxph-m83pJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ua-parser-js_project | ua-parser-jscpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* |
>= 0.7.14, < 0.7.24 | 0.7.24 |
| OSV | npm | ua-parser-js | >= 0.7.14, < 0.7.24 | 0.7.24 |
References
- https://gist.github.com/b-c-ds/6941d80d6b4e694df4bc269493b7be76 · Exploit, Third Party Advisory, WEB
- https://github.com/faisalman/ua-parser-js/commit/809439e20e273ce0d25c1d04e111dcf6011eb566 · Patch, Third Party Advisory, WEB
- https://github.com/pygments/pygments/commit/2e7e8c4a7b318f4032493773732754e418279a14 · Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-27292 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 17 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 6 May 2021)