loftwah/casualcoder.io

CVE-2022-25858 (High) detected in terser-4.8.0.tgz, terser-5.9.0.tgz

Opened this issue · 0 comments

CVE-2022-25858 - High Severity Vulnerability

Vulnerable Libraries - terser-4.8.0.tgz, terser-5.9.0.tgz

terser-4.8.0.tgz

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

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

Path to dependency file: /wp-content/themes/twentytwenty/package.json

Path to vulnerable library: /wp-content/themes/twentytwenty/node_modules/terser/package.json

Dependency Hierarchy:

  • scripts-16.1.2.tgz (Root Library)
    • terser-webpack-plugin-3.1.0.tgz
      • terser-4.8.0.tgz (Vulnerable Library)
terser-5.9.0.tgz

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

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

Path to dependency file: /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-webhooks/package.json

Path to vulnerable library: /wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-webhooks/node_modules/terser/package.json,/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-wc-gateway/node_modules/terser/package.json,/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-vaulting/node_modules/terser/package.json

Dependency Hierarchy:

  • webpack-5.55.1.tgz (Root Library)
    • terser-webpack-plugin-5.2.4.tgz
      • terser-5.9.0.tgz (Vulnerable Library)

Found in HEAD commit: 2a547a4e11432904e06e68b474dda27a1778e276

Found in base branch: main

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

Direct dependency fix Resolution (@wordpress/scripts): 16.1.3

Fix Resolution (terser): 4.8.1

Direct dependency fix Resolution (webpack): 5.56.0


Step up your Open Source Security Game with Mend here