All CVEs / Ua-parser-js Project
CVE-2022-25927Ua-parser-js Project Ua-parser-js
High 7.5 No auth needed
Follow: this CVE · Ua-parser-js Project · Ua-parser-js Project Ua-parser-js We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 76
- Auth required
- No
- Published
- Jan 26, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1333
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Ua-parser-js.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ua-parser-js |
≥ 0.7.30 < 0.7.33 |
0.7.33 |
npm install ua-parser-js@0.7.33 |
| npm | ua-parser-js |
≥ 0.8.0 < 1.0.33 |
1.0.33 |
npm install ua-parser-js@1.0.33 |
Per OSV / GitHub Advisories (GHSA-fhg7-m89q-25r3). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ua-parser-js_project | ua-parser-js | ≥ 0.7.30 < 0.7.33 |
| ua-parser-js_project | ua-parser-js | ≥ 0.8.1 < 1.0.33 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- security.snyk.io Exploit Third Party Advisory