snowdensb / dependabot-core

🤖 The core logic behind Dependabot's update PR creation, and the public issue tracker for all things Dependabot
https://github.com/features/security
Other
0 stars 0 forks source link

cosmiconfig-3.0.0.tgz: 2 vulnerabilities (highest severity is: 8.1) #1121

Open mend-for-github-com[bot] opened 4 months ago

mend-for-github-com[bot] commented 4 months ago
Vulnerable Library - cosmiconfig-3.0.0.tgz

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

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/multiple_sub_dependencies/node_modules/js-yaml

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (cosmiconfig version) Remediation Possible** Reachability
WS-2019-0063 High 8.1 js-yaml-3.9.0.tgz Transitive 3.0.1
WS-2019-0032 High 7.5 js-yaml-3.9.0.tgz Transitive 3.0.1

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

Details

WS-2019-0063 ### Vulnerable Library - js-yaml-3.9.0.tgz

YAML 1.2 parser and serializer

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

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

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/multiple_sub_dependencies/node_modules/js-yaml

Dependency Hierarchy: - cosmiconfig-3.0.0.tgz (Root Library) - :x: **js-yaml-3.9.0.tgz** (Vulnerable Library)

Found in base branch: main

### 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 (cosmiconfig): 3.0.1

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.
WS-2019-0032 ### Vulnerable Library - js-yaml-3.9.0.tgz

YAML 1.2 parser and serializer

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

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

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/multiple_sub_dependencies/node_modules/js-yaml

Dependency Hierarchy: - cosmiconfig-3.0.0.tgz (Root Library) - :x: **js-yaml-3.9.0.tgz** (Vulnerable Library)

Found in base branch: main

### 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 (cosmiconfig): 3.0.1

:rescue_worker_helmet: Automatic Remediation will be attempted for this issue.

:rescue_worker_helmet:Automatic Remediation will be attempted for this issue.