The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.
:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.
CVE-2022-25858 - High Severity Vulnerability
Vulnerable Library - terser-4.5.1.tgz
JavaScript parser, mangler/compressor and beautifier toolkit for ES6+
Library home page: https://registry.npmjs.org/terser/-/terser-4.5.1.tgz
Path to dependency file: /WFHResourcesApp/package.json
Path to vulnerable library: /WFHResourcesApp/node_modules/terser/package.json
Dependency Hierarchy: - build-angular-0.900.6.tgz (Root Library) - :x: **terser-4.5.1.tgz** (Vulnerable Library)
Found in HEAD commit: d3c02e2c5a2535794748edfa4bf46da438809e79
Found in base branch: master
Vulnerability Details
The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.
Publish Date: 2022-07-15
URL: CVE-2022-25858
CVSS 3 Score Details (7.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25858
Release Date: 2022-07-15
Fix Resolution (terser): 5.0.0-beta.0
Direct dependency fix Resolution (@angular-devkit/build-angular): 12.0.0
Step up your Open Source Security Game with Mend here