PT-2023-12838 · Unknown+2 · Ua-Parser-Js+2

Beau Harder

·

Published

2023-01-24

·

Updated

2026-02-17

·

CVE-2022-25927

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions ua-parser-js versions 0.7.30 through 0.7.32 ua-parser-js versions 0.8.1 through 1.0.32
Description A regular expression denial of service (ReDoS) issue has been discovered in ua-parser-js, allowing an attacker to craft a long user-agent string with a specific pattern, causing the script to get stuck processing for a long time and resulting in a denial of service (DoS) condition. This vulnerability bypasses the library's MAX LENGTH input limit prevention.
Recommendations For ua-parser-js versions 0.7.30 through 0.7.32, update to version 0.7.33 or later. For ua-parser-js versions 0.8.1 through 1.0.32, update to version 1.0.33 or later. As a temporary workaround, consider restricting the input to the trim() function to prevent exploitation until a patch is applied.

Exploit

Fix

DoS

Resource Exhaustion

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2022-25927
GHSA-FHG7-M89Q-25R3

Affected Products

Confluence
Debian
Ua-Parser-Js