CVE-2022-25927
published medium CVSS 3.1 · 5.3ua-parser-js: ReDoS vulnerability via the trim() function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | ua-parser-js0.7.30 to < 0.7.33 · 0.8.1 to < 1.0.33 | Affected | Not stated | snyk |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- snyk · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | ua-parser-js | 0.7.30 to < 0.7.33 (affected · semver)0.8.1 to < 1.0.33 (affected · semver) | snyk · cna |
Weaknesses
2- CWE-1333 Regular Expression Denial of Service (ReDoS)
- CWE-1333 CWE-1333 Inefficient Regular Expression Complexity
References
2Provider assertions
3snyk · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ff6f7e945b7e78d31f7653da7f30c509a13569b97a709770bc2de2f9a7df2145
- Ingested
- 23 Sep 2026, 07:59:13 UTC
- Source record
- Official CVE record