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.
Remediation
References
https://security.snyk.io/vuln/SNYK-JS-UAPARSERJS-3244450
https://github.com/faisalman/ua-parser-js/commit/a6140a17dd0300a35cfc9cff999545f267889411
Related Vulnerabilities
CVE-2018-18854 Vulnerability in maven package io.spray:spray-json_2.11
CVE-2021-42567 Vulnerability in maven package org.apereo.cas:cas-server-core-services
CVE-2020-7690 Vulnerability in maven package org.webjars.bowergithub.mrrio:jspdf
CVE-2022-45921 Vulnerability in maven package io.fusionauth:fusionauth-java-client
CVE-2020-9447 Vulnerability in maven package com.googlecode.gwtupload:gwtupload-samples