Skip to content
OpenAdvisories
Medium · 5.3 Public exploit CVE-2022-25927 EUVD-2023-0457GHSA-fhg7-m89q-25r3

ReDoS Vulnerability in ua-parser-js version

Published Jan 25, 2023 · Updated Apr 1, 2025 · Assigned by 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.

Affected products

VendorProductAffectedFixed
— ua-parser-js 0.7.30 – < 0.7.33, 0.8.1 – < 1.0.33 0.7.33

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-ua-parser-js 0.8.1+ds+~0.7.36-3 —
Debian 13 node-ua-parser-js 0.8.1+ds+~0.7.36-3 —
Debian 12 node-ua-parser-js 0.8.1+ds+~0.7.36-3 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-ua-parser-js No fix yet —
Ubuntu 26.04 LTS node-ua-parser-js No fix yet —
Ubuntu 25.10 node-ua-parser-js No fix yet —
Ubuntu 24.04 LTS node-ua-parser-js No fix yet —
Ubuntu 22.04 LTS node-ua-parser-js No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-ua-parser-js No fix yet —
Ubuntu 18.04 LTS node-ua-parser-js No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
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

Advisories 5

References