CVE-2021-27292
JSON

7.5high

Regular Expression Denial of Service (ReDoS) in ua-parser-js

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
3.37% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-78cj-fxph-m83p

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
ua-parser-js (npm)from 0.7.14 before 0.7.24GitHub Advisory Database
ua-parser-js_project ua-parser-jsfrom 0.7.14 before 0.7.24NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

NVD (es)

ua-parser-js versiones posteriores incluyendo a 0.7.14, corregido en 0.7.24, usa una expresión regular que es vulnerable a una denegación de servicio. Si un atacante envía un encabezado User-Agent malicioso, ua-parser-js se bloqueará al procesarlo durante un período de tiempo prolongado

References

Sources

SourceRecordLicence
CVE ListCVE-2021-27292 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-78cj-fxph-m83p changed 2023-11-08CC-BY-4.0
NVDCVE-2021-27292 changed 2026-06-17Public domain