Vulnerability · Published Jan 25, 2023 · Assigned by snyk
CVE-2022-25927
Medium 5.3
In plain English
A medium-severity regular-expression denial of service in ua-parser-js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.8%top 21.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-ua-parser-js | 0.8.1+ds+~0.7.36-3 | DEBIAN-CVE-2022-25927 |
| Debian:13 | node-ua-parser-js | 0.8.1+ds+~0.7.36-3 | DEBIAN-CVE-2022-25927 |
| Debian:14 | node-ua-parser-js | 0.8.1+ds+~0.7.36-3 | DEBIAN-CVE-2022-25927 |
| Ubuntu:22.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2022-25927 |
| Ubuntu:24.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2022-25927 |
| Ubuntu:25.10 | node-ua-parser-js | no fix listed | UBUNTU-CVE-2022-25927 |
| Ubuntu:26.04:LTS | node-ua-parser-js | no fix listed | UBUNTU-CVE-2022-25927 |
| Ubuntu:26.10 | node-ua-parser-js | no fix listed | UBUNTU-CVE-2022-25927 |
| npm | ua-parser-js | 1.0.33 | GHSA-fhg7-m89q-25r3 |
| npm | ua-parser-js | 0.7.33 | GHSA-fhg7-m89q-25r3 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | ua-parser-js | 0.7.30 – before 0.7.330.8.1 – before 1.0.33 |
Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P