dmyers87 / matrix-react-sdk

Matrix SDK for React Javascript
Apache License 2.0
0 stars 0 forks source link

CVE-2022-25858 (Medium) detected in terser-4.7.0.tgz #50

Open mend-for-github-com[bot] opened 2 years ago

mend-for-github-com[bot] commented 2 years ago

CVE-2022-25858 - Medium Severity Vulnerability

Vulnerable Library - terser-4.7.0.tgz

JavaScript parser, mangler/compressor and beautifier toolkit for ES6+

Library home page: https://registry.npmjs.org/terser/-/terser-4.7.0.tgz

Path to dependency file: /node_modules/terser/package.json

Path to vulnerable library: /node_modules/terser/package.json

Dependency Hierarchy: - diff-dom-4.1.6.tgz (Root Library) - rollup-plugin-terser-5.3.0.tgz - :x: **terser-4.7.0.tgz** (Vulnerable Library)

Found in HEAD commit: 0c22b39b4f64e2bf88c2b59e4e09bc0b140c91e6

Found in base branch: develop

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 (5.3)

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: Low

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): 4.8.1

Direct dependency fix Resolution (diff-dom): 4.2.0