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

npm-6.14.18.tgz: 3 vulnerabilities (highest severity is: 7.5) #48

Open
dev-mend-for-github-com bot opened this issue Oct 17, 2023 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@dev-mend-for-github-com
Copy link

dev-mend-for-github-com bot commented Oct 17, 2023

Vulnerable Library - npm-6.14.18.tgz

Path to dependency file: /npm_and_yarn/helpers/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/http-cache-semantics/package.json,/npm_and_yarn/helpers/node_modules/npm/node_modules/http-cache-semantics/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (npm version) Remediation Possible** Reachability
CVE-2021-3807 High 7.5 detected in multiple dependencies Transitive 7.0.0
CVE-2022-33987 Medium 5.3 got-6.7.1.tgz Transitive 7.0.0
CVE-2022-25881 Medium 5.3 http-cache-semantics-3.8.1.tgz Transitive 7.0.0

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

Details

CVE-2021-3807

Vulnerable Libraries - ansi-regex-3.0.0.tgz, ansi-regex-4.1.0.tgz

ansi-regex-3.0.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.0.tgz

Path to dependency file: /npm_and_yarn/helpers/package.json

Path to vulnerable library: /npm_and_yarn/helpers/node_modules/inquirer/node_modules/string-width/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/lockfile_only_change/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/strip-ansi/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/github_dependency_slash/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/strip-ansi/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/npm/node_modules/string-width/node_modules/ansi-regex/package.json

Dependency Hierarchy:

  • npm-6.14.18.tgz (Root Library)
    • cli-table3-0.5.1.tgz
      • string-width-2.1.1.tgz
        • strip-ansi-4.0.0.tgz
          • ansi-regex-3.0.0.tgz (Vulnerable Library)

ansi-regex-4.1.0.tgz

Regular expression for matching ANSI escape codes

Library home page: https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/node_modules/cliui/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/npm/node_modules/yargs/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/inquirer/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/node_modules/showdown/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/node_modules/wrap-ansi/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/node_modules/showdown/node_modules/ansi-regex/package.json,/npm_and_yarn/spec/fixtures/projects/npm8/workspaces_incorrect_version/node_modules/wrap-ansi/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/npm/node_modules/yargs/node_modules/ansi-regex/package.json,/npm_and_yarn/helpers/node_modules/inquirer/node_modules/ansi-regex/package.json

Dependency Hierarchy:

  • npm-6.14.18.tgz (Root Library)
    • libnpx-10.2.4.tgz
      • yargs-14.2.3.tgz
        • string-width-3.1.0.tgz
          • strip-ansi-5.2.0.tgz
            • ansi-regex-4.1.0.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

ansi-regex is vulnerable to Inefficient Regular Expression Complexity

Publish Date: 2021-09-17

URL: CVE-2021-3807

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://huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994/

Release Date: 2021-09-17

Fix Resolution (ansi-regex): 3.0.1

Direct dependency fix Resolution (npm): 7.0.0

Fix Resolution (ansi-regex): 3.0.1

Direct dependency fix Resolution (npm): 7.0.0

In order to enable automatic remediation, please create workflow rules

CVE-2022-33987

Vulnerable Library - got-6.7.1.tgz

Simplified HTTP requests

Library home page: https://registry.npmjs.org/got/-/got-6.7.1.tgz

Path to dependency file: /npm_and_yarn/helpers/package.json

Path to vulnerable library: /npm_and_yarn/helpers/node_modules/npm/node_modules/got/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/update-notifier/node_modules/latest-version/node_modules/package-json/node_modules/got/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/github_dependency_slash/package.json

Dependency Hierarchy:

  • npm-6.14.18.tgz (Root Library)
    • update-notifier-2.5.0.tgz
      • latest-version-3.1.0.tgz
        • package-json-4.0.1.tgz
          • got-6.7.1.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

The got package before 12.1.0 (also fixed in 11.8.5) for Node.js allows a redirect to a UNIX socket.

Publish Date: 2022-06-18

URL: CVE-2022-33987

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-2022-33987

Release Date: 2022-06-18

Fix Resolution (got): 11.8.6

Direct dependency fix Resolution (npm): 7.0.0

In order to enable automatic remediation, please create workflow rules

CVE-2022-25881

Vulnerable Library - http-cache-semantics-3.8.1.tgz

Parses Cache-Control and other headers. Helps building correct HTTP caches and proxies

Library home page: https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/package.json

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/pacote/node_modules/make-fetch-happen/node_modules/http-cache-semantics/package.json,/npm_and_yarn/spec/fixtures/projects/yarn/dist_tag/node_modules/npm/node_modules/npm-profile/node_modules/make-fetch-happen/node_modules/http-cache-semantics/package.json,/npm_and_yarn/helpers/node_modules/npm/node_modules/http-cache-semantics/package.json

Dependency Hierarchy:

  • npm-6.14.18.tgz (Root Library)
    • npm-registry-fetch-4.0.7.tgz
      • make-fetch-happen-5.0.2.tgz
        • http-cache-semantics-3.8.1.tgz (Vulnerable Library)

Found in base branch: main

Vulnerability Details

This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.

Publish Date: 2023-01-31

URL: CVE-2022-25881

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

Release Date: 2023-01-31

Fix Resolution (http-cache-semantics): 4.1.1

Direct dependency fix Resolution (npm): 7.0.0

In order to enable automatic remediation, please create workflow rules


In order to enable automatic remediation for this issue, please create workflow rules

@dev-mend-for-github-com dev-mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Oct 17, 2023
@dev-mend-for-github-com dev-mend-for-github-com bot changed the title npm-6.14.18.tgz: 1 vulnerabilities (highest severity is: 7.5) npm-6.14.18.tgz: 2 vulnerabilities (highest severity is: 7.5) Dec 7, 2023
@dev-mend-for-github-com dev-mend-for-github-com bot changed the title npm-6.14.18.tgz: 2 vulnerabilities (highest severity is: 7.5) npm-6.14.18.tgz: 3 vulnerabilities (highest severity is: 7.5) Dec 14, 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