Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sharp-0.29.3.tgz: 3 vulnerabilities (highest severity is: 7.5) #26

Open
mend-bolt-for-github bot opened this issue Aug 6, 2023 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-bolt-for-github
Copy link
Contributor

Vulnerable Library - sharp-0.29.3.tgz

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images

Library home page: https://registry.npmjs.org/sharp/-/sharp-0.29.3.tgz

Path to dependency file: /bot/package.json

Path to vulnerable library: /bot/node_modules/sharp/package.json,/panthers/node_modules/sharp/package.json

Found in HEAD commit: e2b29305f08fe5db8725be9ef26d361cffaac4af

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (sharp version) Remediation Available
CVE-2022-0355 High 7.5 simple-get-4.0.0.tgz Transitive 0.30.0
CVE-2022-25883 High 7.5 semver-7.3.5.tgz Transitive N/A*
CVE-2022-29256 Medium 6.7 sharp-0.29.3.tgz Direct 0.30.5

*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.

Details

CVE-2022-0355

Vulnerable Library - simple-get-4.0.0.tgz

Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines.

Library home page: https://registry.npmjs.org/simple-get/-/simple-get-4.0.0.tgz

Path to dependency file: /bot/package.json

Path to vulnerable library: /bot/node_modules/sharp/node_modules/simple-get/package.json,/panthers/node_modules/sharp/node_modules/simple-get/package.json,/panthers/node_modules/prebuild-install/node_modules/simple-get/package.json,/bot/node_modules/prebuild-install/node_modules/simple-get/package.json

Dependency Hierarchy:

  • sharp-0.29.3.tgz (Root Library)
    • simple-get-4.0.0.tgz (Vulnerable Library)

Found in HEAD commit: e2b29305f08fe5db8725be9ef26d361cffaac4af

Found in base branch: main

Vulnerability Details

Improper Removal of Sensitive Information Before Storage or Transfer in NPM simple-get prior to 4.0.1.

Publish Date: 2022-01-26

URL: CVE-2022-0355

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: High
    • Integrity Impact: None
    • 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-2022-0355

Release Date: 2022-01-26

Fix Resolution (simple-get): 4.0.1

Direct dependency fix Resolution (sharp): 0.30.0

Step up your Open Source Security Game with Mend here

CVE-2022-25883

Vulnerable Library - semver-7.3.5.tgz

The semantic version parser used by npm.

Library home page: https://registry.npmjs.org/semver/-/semver-7.3.5.tgz

Path to dependency file: /bot/package.json

Path to vulnerable library: /bot/node_modules/semver/package.json,/panthers/node_modules/semver/package.json,/parsers/node_modules/semver/package.json

Dependency Hierarchy:

  • sharp-0.29.3.tgz (Root Library)
    • semver-7.3.5.tgz (Vulnerable Library)

Found in HEAD commit: e2b29305f08fe5db8725be9ef26d361cffaac4af

Found in base branch: main

Vulnerability Details

Versions of the package semver before 7.5.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the function new Range, when untrusted user data is provided as a range.

Publish Date: 2023-06-21

URL: CVE-2022-25883

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: GHSA-c2qf-rxjj-qqgw

Release Date: 2023-06-21

Fix Resolution: semver - 5.7.2,6.3.1,7.5.2;org.webjars.npm:semver:7.5.2

Step up your Open Source Security Game with Mend here

CVE-2022-29256

Vulnerable Library - sharp-0.29.3.tgz

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images

Library home page: https://registry.npmjs.org/sharp/-/sharp-0.29.3.tgz

Path to dependency file: /bot/package.json

Path to vulnerable library: /bot/node_modules/sharp/package.json,/panthers/node_modules/sharp/package.json

Dependency Hierarchy:

  • sharp-0.29.3.tgz (Vulnerable Library)

Found in HEAD commit: e2b29305f08fe5db8725be9ef26d361cffaac4af

Found in base branch: main

Vulnerability Details

sharp is an application for Node.js image processing. Prior to version 0.30.5, there is a possible vulnerability in logic that is run only at npm install time when installing versions of sharp prior to the latest v0.30.5. If an attacker has the ability to set the value of the PKG_CONFIG_PATH environment variable in a build environment then they might be able to use this to inject an arbitrary command at npm install time. This is not part of any runtime code, does not affect Windows users at all, and is unlikely to affect anyone that already cares about the security of their build environment. This problem is fixed in version 0.30.5.

Publish Date: 2022-05-25

URL: CVE-2022-29256

CVSS 3 Score Details (6.7)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: High
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • 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-29256

Release Date: 2022-05-25

Fix Resolution: 0.30.5

Step up your Open Source Security Game with Mend here

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend
Projects
None yet
Development

No branches or pull requests

0 participants