scriptex/rollup-mpa

CVE-2021-33587 (Medium) detected in css-what-2.1.3.tgz, css-what-3.4.2.tgz

mend-bolt-for-github opened this issue · 0 comments

CVE-2021-33587 - Medium Severity Vulnerability

Vulnerable Libraries - css-what-2.1.3.tgz, css-what-3.4.2.tgz

css-what-2.1.3.tgz

a CSS selector parser

Library home page: https://registry.npmjs.org/css-what/-/css-what-2.1.3.tgz

Path to dependency file: rollup-mpa/package.json

Path to vulnerable library: rollup-mpa/node_modules/css-what

Dependency Hierarchy:

  • critical-3.1.0.tgz (Root Library)
    • oust-1.2.0.tgz
      • cheerio-0.22.0.tgz
        • css-select-1.2.0.tgz
          • css-what-2.1.3.tgz (Vulnerable Library)
css-what-3.4.2.tgz

a CSS selector parser

Library home page: https://registry.npmjs.org/css-what/-/css-what-3.4.2.tgz

Path to dependency file: rollup-mpa/package.json

Path to vulnerable library: rollup-mpa/node_modules/css-what

Dependency Hierarchy:

  • rollup-plugin-postcss-4.0.0.tgz (Root Library)
    • cssnano-4.1.11.tgz
      • cssnano-preset-default-4.0.8.tgz
        • postcss-svgo-4.0.3.tgz
          • svgo-1.3.2.tgz
            • css-select-2.1.0.tgz
              • css-what-3.4.2.tgz (Vulnerable Library)

Found in HEAD commit: 1c563eb5ee2c9270f4f5a8fa56c52a524265234b

Found in base branch: master

Vulnerability Details

The css-what package before 5.0.1 for Node.js does not ensure that attribute parsing has Linear Time Complexity relative to the size of the input.

Publish Date: 2021-05-28

URL: CVE-2021-33587

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: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-33587

Release Date: 2021-05-28

Fix Resolution: css-what - 5.0.1


Step up your Open Source Security Game with WhiteSource here