Regular expression denial of service in ua-parser-js
Priority HIGH 72CWE-1333Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 fixed, 10 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-1333.
Summary
Versions of the package ua-parser-js from 0.7.30 and before 0.7.33, from 0.8.1 and before 1.0.33 are vulnerable to Regular Expression Denial of Service (ReDoS) via the trim() function.
Why it matters now
Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01774 78th percentileScored 2026-11-07
Fix Partial ua-parser-js: 0.7.33, 1.0.33ua-parser-js (npm): 0.7.33, 1.0.33Red Hat: 1 advisoryRed Hat: 1 fixed, 10 without a fix
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ua-parser-js | 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 | 0.7.33, 1.0.33 | Patch available | CNA |
| — | ua-parser-js (npm) | 0.7.30 to before 0.7.33 | 0.7.33 | Patch available | GHSA-fhg7-m89q-25r3 |
| — | ua-parser-js (npm) | 0.8.0 to before 1.0.33 | 1.0.33 | Patch available | GHSA-fhg7-m89q-25r3 |
- ua-parser-js Vendor— Affected 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 Fixed in 0.7.33, 1.0.33 Patch available CNA
- ua-parser-js (npm) Vendor— Affected 0.7.30 to before 0.7.33 Fixed in 0.7.33 Patch available GHSA-fhg7-m89q-25r3
- ua-parser-js (npm) Vendor— Affected 0.8.0 to before 1.0.33 Fixed in 1.0.33 Patch available GHSA-fhg7-m89q-25r3
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* | 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 | Vulnerable | Ua-parser-js Project |
- cpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* Versions 0.7.30 to before 0.7.33; 0.8.1 to before 1.0.33 Vulnerable ·Ua-parser-js Project
Remediation
- Fix · CNA ua-parser-js Fixed in 0.7.33, 1.0.33
- Fix · GHSA-fhg7-m89q-25r3 ua-parser-js (npm) Fixed in 0.7.33 Advisory →
- Fix · GHSA-fhg7-m89q-25r3 ua-parser-js (npm) Fixed in 1.0.33 Advisory →
Red Hat 1 advisory
- RHSA-2023:1428 Released 2023-03-23 · Red Hat rating ImportantMigration Toolkit for Containers (MTC) 1.7.8 security and bug fix update
- 8Base-RHMTC-1.7 rhmtc/openshift-migration-controller-rhel8, rhmtc/openshift-migration-ui-rhel8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Service Mesh 2.1 | Affected | No fix planned: Will not fix |
| Red Hat Ceph Storage 3 | Affected | No fix planned: Out of support scope |
| Red Hat Decision Manager 7 | Affected | No fix planned: Out of support scope |
| Red Hat JBoss Data Grid 7 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 3.11 | Affected | No fix planned: Out of support scope |
| Red Hat OpenShift Container Platform 4 | Affected | No fix planned: Will not fix |
| Red Hat OpenShift distributed tracing 2 | Affected | No fix yet |
| Red Hat Process Automation 7 | Affected | No fix planned: Out of support scope |
| Red Hat Storage 3 | Affected | No fix planned: Will not fix |
| Red Hat Virtualization 4 | Affected | No fix planned: Will not fix |
| 8Base-RHMTC-1.7 | Fixed | RHSA-2023:1428 |
Not affected: 8 products
- 8Base-RHMTC-1.7
- OpenShift Developer Tools and Services
- Red Hat Discovery 1
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2022-25927
- 2026-10-03 Alias added: GHSA-fhg7-m89q-25r3
References
More Ua-parser-js Project Ua-parser-js vulnerabilities
- TI-2026-35563 UAParser.js: Unbounded `Sec-CH-UA-Model` parsing can trigger ReDoS in `withClientHints()` CVSS 3.1MEDIUM 5.3
- TI-2021-03090 ua-parser-js Crypto Mining backdoor CVSS 3.1HIGH 8.8
- TI-2020-06309 Regular expression denial of service (ReDoS) in ua-parser-js CVSS 3.1HIGH 7.5
- TI-2020-06251 Regular expression denial of service (ReDoS) in ua-parser-js CVSS 3.1HIGH 7.5
- TI-2021-08826 ua-parser-js >= 0.7.14, fixed in 0.7.24, uses a regular expression which is vulnerable to… CVSS 3.1HIGH 7.5
Sources
- CVE-2022-25927 · CVE Program
- CVE-2022-25927 · NVD
- FIRST EPSS
- GHSA-fhg7-m89q-25r3 · GitHub Advisory Database · CC BY 4.0
- CVE-2022-25927 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences