Home / ua-parser-js / ua-parser-js / CVE-2022-25927
CVE-2022-25927: is it exploited, and which versions of ua-parser-js are affected and fixed?
CVE-2022-25927 is a regular expression denial of service (ReDoS) vulnerability in ua-parser-js. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: ua-parser-js from 0.7.30 before 0.7.33 and ua-parser-js from 0.8.0 before 1.0.33 (GitHub advisory GHSA-fhg7-m89q-25r3). Fixed in 0.7.33 and 1.0.33 (GitHub advisory GHSA-fhg7-m89q-25r3). Severity: Medium (5.3, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:42 UTC.
What is CVE-2022-25927?
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.
From the CVE record by snyk, last updated April 1, 2025, 18:28 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ua-parser-js | from 0.7.30 before 0.7.33 from 0.8.1 before 1.0.33 | 0.7.33, 1.0.33 |
As the CVE record by snyk states it, last updated April 1, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | ua-parser-js | >= 0.7.30, < 0.7.33 | 0.7.33 | GHSA-fhg7-m89q-25r3 |
| npm | ua-parser-js | >= 0.8.0, < 1.0.33 | 1.0.33 | GHSA-fhg7-m89q-25r3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 17, 2025. Summary: ReDoS Vulnerability in ua-parser-js version.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| ua-parser-js project | ua-parser-js | from 0.7.30 before 0.7.33 | application |
| ua-parser-js project | ua-parser-js | from 0.8.1 before 1.0.33 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:34 UTC.
How severe is CVE-2022-25927?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P | snyk |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-25927 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, April 1, 2025)
- EPSS
- 1.84% probability of exploitation activity in the next 30 days, percentile 79.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
- https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411
Who found and reported it?
- Beau Harder (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 24, 2022
- Published
- January 25, 2023, 05:00 UTC
- CVE record updated
- April 1, 2025, 18:28 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 04:34 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:42 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect ua-parser-js?
- May 24, 2022CVE-2021-4229 ua-parser-js: hidden Functionality
- Dec 11, 2020CVE-2020-7793 ua-parser-js: denial of service (uncontrolled resource consumption)
- Sep 16, 2020CVE-2020-7733 ua-parser-js: denial of service (uncontrolled resource consumption)
Questions about CVE-2022-25927
Is CVE-2022-25927 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.84% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of ua-parser-js are affected by CVE-2022-25927?
ua-parser-js from 0.7.30 before 0.7.33 and ua-parser-js from 0.8.0 before 1.0.33, per the GitHub advisory GHSA-fhg7-m89q-25r3. The tables above give every range the sources list.
Which version fixes CVE-2022-25927?
0.7.33 and 1.0.33, per the GitHub advisory GHSA-fhg7-m89q-25r3. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-25927?
Medium (5.3, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2022-25927?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.