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

lint-staged-7.2.2.tgz: 7 vulnerabilities (highest severity is: 9.8) reachable #6

Open
dev-mend-for-github-com bot opened this issue Mar 18, 2024 · 0 comments
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 Mar 18, 2024

Vulnerable Library - lint-staged-7.2.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/decode-uri-component/package.json

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (lint-staged version) Remediation Possible** Reachability
CVE-2019-10747 Critical 9.8 detected in multiple dependencies Transitive 7.3.0

Reachable

CVE-2019-10746 Critical 9.8 mixin-deep-1.3.1.tgz Transitive 7.3.0

Reachable

WS-2019-0063 High 8.1 js-yaml-3.12.0.tgz Transitive 7.3.0

Reachable

WS-2019-0032 High 7.5 js-yaml-3.12.0.tgz Transitive 7.3.0

Reachable

CVE-2022-38900 High 7.5 decode-uri-component-0.2.0.tgz Transitive 7.3.0

Reachable

CVE-2021-3807 High 7.5 ansi-regex-3.0.0.tgz Transitive 7.3.0

Reachable

CVE-2019-20149 High 7.5 kind-of-6.0.2.tgz Transitive 7.3.0

Reachable

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

Details

CVE-2019-10747

Vulnerable Libraries - set-value-0.4.3.tgz, set-value-2.0.0.tgz

set-value-0.4.3.tgz

Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.

Library home page: https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/union-value/node_modules/set-value/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • micromatch-3.1.10.tgz
      • snapdragon-0.8.2.tgz
        • base-0.11.2.tgz
          • cache-base-1.0.1.tgz
            • union-value-1.0.0.tgz
              • set-value-0.4.3.tgz (Vulnerable Library)

set-value-2.0.0.tgz

Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.

Library home page: https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/set-value/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • micromatch-3.1.10.tgz
      • snapdragon-0.8.2.tgz
        • base-0.11.2.tgz
          • cache-base-1.0.1.tgz
            • set-value-2.0.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/webpack.config.admin.js (Application)
  -> webpack-4.17.1/lib/webpack.js (Extension)
   -> webpack-4.17.1/lib/node/NodeEnvironmentPlugin.js (Extension)
    -> snapdragon-0.8.2/index.js (Extension)
    ...
      -> cache-base-1.0.1/index.js (Extension)
       -> union-value-1.0.0/index.js (Extension)
        -> ❌ set-value-0.4.3/index.js (Vulnerable Component)

Vulnerability Details

set-value is vulnerable to Prototype Pollution in versions lower than 3.0.1. The function mixin-deep could be tricked into adding or modifying properties of Object.prototype using any of the constructor, prototype and proto payloads.

Publish Date: 2019-08-23

URL: CVE-2019-10747

CVSS 3 Score Details (9.8)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2019-08-23

Fix Resolution (set-value): 2.0.1

Direct dependency fix Resolution (lint-staged): 7.3.0

Fix Resolution (set-value): 2.0.1

Direct dependency fix Resolution (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

CVE-2019-10746

Vulnerable Library - mixin-deep-1.3.1.tgz

Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.

Library home page: https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/mixin-deep/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • micromatch-3.1.10.tgz
      • snapdragon-0.8.2.tgz
        • base-0.11.2.tgz
          • mixin-deep-1.3.1.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/webpack.config.admin.js (Application)
  -> webpack-4.17.1/lib/webpack.js (Extension)
   -> webpack-4.17.1/lib/optimize/SideEffectsFlagPlugin.js (Extension)
    -> extglob-2.0.4/index.js (Extension)
    ...
      -> snapdragon-0.8.2/index.js (Extension)
       -> base-0.11.2/index.js (Extension)
        -> ❌ mixin-deep-1.3.1/index.js (Vulnerable Component)

Vulnerability Details

mixin-deep is vulnerable to Prototype Pollution in versions before 1.3.2 and version 2.0.0. The function mixin-deep could be tricked into adding or modifying properties of Object.prototype using a constructor payload.

Publish Date: 2019-08-23

URL: CVE-2019-10746

CVSS 3 Score Details (9.8)

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Release Date: 2019-08-23

Fix Resolution (mixin-deep): 1.3.2

Direct dependency fix Resolution (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

WS-2019-0063

Vulnerable Library - js-yaml-3.12.0.tgz

YAML 1.2 parser and serializer

Library home page: https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz

Path to dependency file: /package.json

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

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • cosmiconfig-5.0.6.tgz
      • js-yaml-3.12.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/package.json (Application)
  -> eslint-5.4.0/bin/eslint.js (Extension)
   -> eslint-5.4.0/lib/config/config-initializer.js (Extension)
    -> eslint-5.4.0/lib/config/config-file.js (Extension)
    ...
      -> js-yaml-3.12.0/lib/js-yaml.js (Extension)
       -> js-yaml-3.12.0/lib/js-yaml/schema/failsafe.js (Extension)
        -> ❌ js-yaml-3.12.0/lib/js-yaml/type/str.js (Vulnerable Component)

Vulnerability Details

Js-yaml prior to 3.13.1 are vulnerable to Code Injection. The load() function may execute arbitrary code injected through a malicious YAML file.

Publish Date: 2019-04-05

URL: WS-2019-0063

CVSS 3 Score Details (8.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: None
    • 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://www.npmjs.com/advisories/813

Release Date: 2019-04-05

Fix Resolution (js-yaml): 3.13.1

Direct dependency fix Resolution (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

WS-2019-0032

Vulnerable Library - js-yaml-3.12.0.tgz

YAML 1.2 parser and serializer

Library home page: https://registry.npmjs.org/js-yaml/-/js-yaml-3.12.0.tgz

Path to dependency file: /package.json

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

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • cosmiconfig-5.0.6.tgz
      • js-yaml-3.12.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/package.json (Application)
  -> eslint-5.4.0/bin/eslint.js (Extension)
   -> eslint-5.4.0/lib/config/config-initializer.js (Extension)
    -> eslint-5.4.0/lib/config/config-file.js (Extension)
    ...
      -> js-yaml-3.12.0/lib/js-yaml.js (Extension)
       -> js-yaml-3.12.0/lib/js-yaml/schema/failsafe.js (Extension)
        -> ❌ js-yaml-3.12.0/lib/js-yaml/type/seq.js (Vulnerable Component)

Vulnerability Details

Versions js-yaml prior to 3.13.0 are vulnerable to Denial of Service. By parsing a carefully-crafted YAML file, the node process stalls and may exhaust system resources leading to a Denial of Service.

Publish Date: 2019-03-20

URL: WS-2019-0032

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://www.npmjs.com/advisories/788/versions

Release Date: 2019-03-20

Fix Resolution (js-yaml): 3.13.0

Direct dependency fix Resolution (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

CVE-2022-38900

Vulnerable Library - decode-uri-component-0.2.0.tgz

A better decodeURIComponent

Library home page: https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/decode-uri-component/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • micromatch-3.1.10.tgz
      • snapdragon-0.8.2.tgz
        • source-map-resolve-0.5.2.tgz
          • decode-uri-component-0.2.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/src/store/shared/actions.js (Application)
  -> query-string-6.1.0/index.js (Extension)
   -> ❌ decode-uri-component-0.2.0/index.js (Vulnerable Component)

Vulnerability Details

decode-uri-component 0.2.0 is vulnerable to Improper Input Validation resulting in DoS.

Publish Date: 2022-11-28

URL: CVE-2022-38900

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-w573-4hg7-7wgq

Release Date: 2022-11-28

Fix Resolution (decode-uri-component): 0.2.1

Direct dependency fix Resolution (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

CVE-2021-3807

Vulnerable Library - 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: /package.json

Path to vulnerable library: /node_modules/webpack-cli/node_modules/ansi-regex/package.json,/node_modules/table/node_modules/ansi-regex/package.json,/node_modules/inquirer/node_modules/ansi-regex/package.json,/node_modules/pretty-format/node_modules/ansi-regex/package.json,/node_modules/eslint/node_modules/ansi-regex/package.json,/node_modules/concurrently/node_modules/ansi-regex/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • jest-validate-23.5.0.tgz
      • pretty-format-23.5.0.tgz
        • ansi-regex-3.0.0.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/package.json (Application)
  -> eslint-5.4.0/bin/eslint.js (Extension)
   -> eslint-5.4.0/lib/config/config-initializer.js (Extension)
    -> inquirer-5.2.0/lib/prompts/editor.js (Extension)
    ...
      -> inquirer-5.2.0/lib/utils/screen-manager.js (Extension)
       -> strip-ansi-4.0.0/index.js (Extension)
        -> ❌ ansi-regex-3.0.0/index.js (Vulnerable Component)

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 (lint-staged): 7.3.0

In order to enable automatic remediation, please create workflow rules

CVE-2019-20149

Vulnerable Library - kind-of-6.0.2.tgz

Get the native type of a value.

Library home page: https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/base/node_modules/kind-of/package.json,/node_modules/nanomatch/node_modules/kind-of/package.json,/node_modules/randomatic/node_modules/kind-of/package.json,/node_modules/snapdragon-node/node_modules/kind-of/package.json,/node_modules/webpack/node_modules/kind-of/package.json,/node_modules/lint-staged/node_modules/kind-of/package.json,/node_modules/define-property/node_modules/kind-of/package.json,/node_modules/clone-deep/node_modules/kind-of/package.json,/node_modules/watchpack/node_modules/kind-of/package.json

Dependency Hierarchy:

  • lint-staged-7.2.2.tgz (Root Library)
    • micromatch-3.1.10.tgz
      • kind-of-6.0.2.tgz (Vulnerable Library)

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

cezerin-0.33.0/webpack.config.admin.js (Application)
  -> webpack-4.17.1/lib/webpack.js (Extension)
   -> webpack-4.17.1/lib/optimize/SideEffectsFlagPlugin.js (Extension)
    -> micromatch-3.1.10/index.js (Extension)
    ...
      -> define-property-2.0.2/index.js (Extension)
       -> is-descriptor-1.0.2/index.js (Extension)
        -> ❌ kind-of-6.0.2/index.js (Vulnerable Component)

Vulnerability Details

ctorName in index.js in kind-of v6.0.2 allows external user input to overwrite certain internal attributes via a conflicting name, as demonstrated by 'constructor': {'name':'Symbol'}. Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.

Publish Date: 2019-12-30

URL: CVE-2019-20149

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2019-20149

Release Date: 2019-12-30

Fix Resolution (kind-of): 6.0.3

Direct dependency fix Resolution (lint-staged): 7.3.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 Mar 18, 2024
@dev-mend-for-github-com dev-mend-for-github-com bot changed the title lint-staged-7.2.2.tgz: 1 vulnerabilities (highest severity is: 7.5) lint-staged-7.2.2.tgz: 7 vulnerabilities (highest severity is: 9.8) reachable May 30, 2024
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