Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1maGc3LW04OXEtMjVyM84AAxIw
ReDoS Vulnerability in ua-parser-js version
Description:
A regular expression denial of service (ReDoS) vulnerability has been discovered in ua-parser-js
.
Impact:
This vulnerability bypass the library's MAX_LENGTH
input limit prevention. By crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition.
Affected Versions:
All versions of the library prior to version 0.7.33
/ 1.0.33
.
Patches:
A patch has been released to remove the vulnerable regular expression, update to version 0.7.33
/ 1.0.33
or later.
References:
Regular expression Denial of Service - ReDoS
Credits:
Thanks to @Snyk who first reported the issue.
Permalink: https://github.com/advisories/GHSA-fhg7-m89q-25r3JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1maGc3LW04OXEtMjVyM84AAxIw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: almost 2 years ago
Updated: over 1 year ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Percentage: 0.00074
EPSS Percentile: 0.3421
Identifiers: GHSA-fhg7-m89q-25r3, CVE-2022-25927
References:
- https://github.com/faisalman/ua-parser-js/security/advisories/GHSA-fhg7-m89q-25r3
- https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411
- https://nvd.nist.gov/vuln/detail/CVE-2022-25927
- https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
- https://github.com/advisories/GHSA-fhg7-m89q-25r3
Blast Radius: 45.0
Affected Packages
npm:ua-parser-js
Dependent packages: 1,976Dependent repositories: 1,003,902
Downloads: 42,811,601 last month
Affected Version Ranges: >= 0.8.0, < 1.0.33, < 0.7.33
Fixed in: 1.0.33, 0.7.33
All affected versions: 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.4.3, 0.4.4, 0.4.6, 0.4.7, 0.4.13, 0.4.15, 0.5.1, 0.5.2, 0.5.3, 0.5.11, 0.5.12, 0.5.15, 0.5.20, 0.5.22, 0.5.23, 0.5.25, 0.5.27, 0.6.0, 0.6.2, 0.7.0, 0.7.1, 0.7.3, 0.7.4, 0.7.6, 0.7.7, 0.7.9, 0.7.10, 0.7.11, 0.7.12, 0.7.13, 0.7.14, 0.7.15, 0.7.16, 0.7.17, 0.7.18, 0.7.19, 0.7.20, 0.7.21, 0.7.22, 0.7.23, 0.7.24, 0.7.25, 0.7.26, 0.7.27, 0.7.28, 0.7.30, 0.7.31, 0.7.32, 0.8.1, 1.0.1, 1.0.2, 1.0.32
All unaffected versions: 0.7.33, 0.7.34, 0.7.35, 0.7.36, 0.7.37, 0.7.38, 0.7.39, 0.7.40, 1.0.33, 1.0.34, 1.0.35, 1.0.36, 1.0.37, 1.0.38, 1.0.39, 1.0.40, 2.0.0