What’s Vulnerable › Vulnerabilities
CVE-2022-25927
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2023-01-26 · updated 2026-06-17
- Weakness: CWE-1333
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 products
- ua-parser-js: from 0.7.30 before 0.7.33; from 0.8.1 before 1.0.33 — fixed in 0.7.33, 1.0.33
How to fix
Upgrade to a fixed version: ua-parser-js 0.7.33, 1.0.33. Check the vendor advisory for mitigations.
References
- https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411
- https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
- https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411
- https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
Get alerted when CVE-2022-25927 or the next vulnerability affects your stack