Vulnerability · Published Jan 25, 2023 · Assigned by snyk

CVE-2022-25927

Medium 5.3

In plain English

A medium-severity regular-expression denial of service in ua-parser-js. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.8% (higher than 78% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)1.8%top 21.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-ua-parser-js0.8.1+ds+~0.7.36-3DEBIAN-CVE-2022-25927
Debian:13node-ua-parser-js0.8.1+ds+~0.7.36-3DEBIAN-CVE-2022-25927
Debian:14node-ua-parser-js0.8.1+ds+~0.7.36-3DEBIAN-CVE-2022-25927
Ubuntu:22.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927
Ubuntu:24.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927
Ubuntu:25.10node-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927
Ubuntu:26.04:LTSnode-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927
Ubuntu:26.10node-ua-parser-jsno fix listedUBUNTU-CVE-2022-25927
npmua-parser-js1.0.33GHSA-fhg7-m89q-25r3
npmua-parser-js0.7.33GHSA-fhg7-m89q-25r3

Affected products (as reported)

VendorProductVersions
n/a ua-parser-js 0.7.30 – before 0.7.330.8.1 – before 1.0.33

Weakness: CWE-1333 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P

References