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

resize-img-1.1.2.tgz: 5 vulnerabilities (highest severity is: 7.5) unreachable #11

Open
mend-for-github-com bot opened this issue Nov 12, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@mend-for-github-com
Copy link

Vulnerable Library - resize-img-1.1.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/jimp/node_modules/jpeg-js/package.json

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (resize-img version) Remediation Possible** Reachability
CVE-2022-25851 High 7.5 jpeg-js-0.2.0.tgz Transitive N/A*

Unreachable

CVE-2020-7753 High 7.5 trim-0.0.1.tgz Transitive 2.0.0

Unreachable

CVE-2020-7661 High 7.5 url-regex-3.2.0.tgz Transitive N/A*

Unreachable

CVE-2020-8175 Medium 5.5 jpeg-js-0.2.0.tgz Transitive N/A*

Unreachable

CVE-2023-0842 Medium 5.3 xml2js-0.4.19.tgz Transitive 2.0.0

Unreachable

*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.

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2022-25851

Vulnerable Library - jpeg-js-0.2.0.tgz

A pure javascript JPEG encoder and decoder

Library home page: https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/jimp/node_modules/jpeg-js/package.json

Dependency Hierarchy:

  • resize-img-1.1.2.tgz (Root Library)
    • jimp-0.2.28.tgz
      • jpeg-js-0.2.0.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

The package jpeg-js before 0.4.4 are vulnerable to Denial of Service (DoS) where a particular piece of input will cause to enter an infinite loop and never return.

Publish Date: 2022-06-10

URL: CVE-2022-25851

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

Release Date: 2022-06-10

Fix Resolution: jpeg-js - 0.4.4

CVE-2020-7753

Vulnerable Library - trim-0.0.1.tgz

Trim string whitespace

Library home page: https://registry.npmjs.org/trim/-/trim-0.0.1.tgz

Path to dependency file: /package.json

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

Dependency Hierarchy:

  • resize-img-1.1.2.tgz (Root Library)
    • jimp-0.2.28.tgz
      • load-bmfont-1.4.0.tgz
        • xhr-2.5.0.tgz
          • parse-headers-2.0.1.tgz
            • trim-0.0.1.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

All versions of package trim are vulnerable to Regular Expression Denial of Service (ReDoS) via trim().

Publish Date: 2020-10-27

URL: CVE-2020-7753

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

Release Date: 2020-10-27

Fix Resolution (trim): 0.0.3

Direct dependency fix Resolution (resize-img): 2.0.0

⛑️ Automatic Remediation will be attempted for this issue.

CVE-2020-7661

Vulnerable Library - url-regex-3.2.0.tgz

Regular expression for matching URLs

Library home page: https://registry.npmjs.org/url-regex/-/url-regex-3.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/url-regex/package.json

Dependency Hierarchy:

  • resize-img-1.1.2.tgz (Root Library)
    • jimp-0.2.28.tgz
      • url-regex-3.2.0.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

all versions of url-regex are vulnerable to Regular Expression Denial of Service. An attacker providing a very long string in String.test can cause a Denial of Service.

Publish Date: 2020-06-04

URL: CVE-2020-7661

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.

CVE-2020-8175

Vulnerable Library - jpeg-js-0.2.0.tgz

A pure javascript JPEG encoder and decoder

Library home page: https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/jimp/node_modules/jpeg-js/package.json

Dependency Hierarchy:

  • resize-img-1.1.2.tgz (Root Library)
    • jimp-0.2.28.tgz
      • jpeg-js-0.2.0.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

Uncontrolled resource consumption in jpeg-js before 0.4.0 may allow attacker to launch denial of service attacks using specially a crafted JPEG image.

Publish Date: 2020-07-24

URL: CVE-2020-8175

CVSS 3 Score Details (5.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Local
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • 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-2020-8175

Release Date: 2020-07-24

Fix Resolution: 0.4.0

CVE-2023-0842

Vulnerable Library - xml2js-0.4.19.tgz

Simple XML to JavaScript object converter.

Library home page: https://registry.npmjs.org/xml2js/-/xml2js-0.4.19.tgz

Path to dependency file: /package.json

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

Dependency Hierarchy:

  • resize-img-1.1.2.tgz (Root Library)
    • jimp-0.2.28.tgz
      • load-bmfont-1.4.0.tgz
        • parse-bmfont-xml-1.1.4.tgz
          • xml2js-0.4.19.tgz (Vulnerable Library)

Found in HEAD commit: a6f8a4191628c69dae14cb7888e24a253948b14a

Found in base branch: master

Reachability Analysis

The vulnerable code is unreachable

Vulnerability Details

xml2js version 0.4.23 allows an external attacker to edit or add new properties to an object. This is possible because the application does not properly validate incoming JSON keys, thus allowing the proto property to be edited.

Publish Date: 2023-04-05

URL: CVE-2023-0842

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://www.cve.org/CVERecord?id=CVE-2023-0842

Release Date: 2023-04-05

Fix Resolution (xml2js): 0.5.0

Direct dependency fix Resolution (resize-img): 2.0.0

⛑️ Automatic Remediation will be attempted for this issue.


⛑️Automatic Remediation will be attempted for this issue.

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