CVE-2022-25927
HIGH 7.5CVSS 3.1ReDoS Vulnerability in ua-parser-js version
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.
- Published
- 26 Jan 2023
- Last modified
- 17 Jun 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-1333CWE-400
- Also known as
- GHSA-fhg7-m89q-25r3
- Sources
- NVDJSONOSV GHSA-fhg7-m89q-25r3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ua-parser-js_project | ua-parser-jscpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* |
>= 0.7.30, < 0.7.33 | 0.7.33 |
| NVD | ua-parser-js_project | ua-parser-jscpe:2.3:a:ua-parser-js_project:ua-parser-js:*:*:*:*:*:node.js:*:* |
>= 0.8.1, < 1.0.33 | 1.0.33 |
| OSV | npm | ua-parser-js | >= 0.7.30, < 0.7.33 | 0.7.33 |
| OSV | npm | ua-parser-js | >= 0.8.0, < 1.0.33 | 1.0.33 |
References
- https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411 · Patch, Third Party Advisory, WEB
- https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450 · Exploit, Third Party Advisory, WEB
- https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-25927 · ADVISORY
- https://github.com/faisalman/ua-parser-js · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 26 Jan 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Jan 2023)