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

moment-2.5.1.min.js: 2 vulnerabilities (highest severity is: 7.5) #1090

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

mend-for-github-com[bot] commented 4 months ago
Vulnerable Library - moment-2.5.1.min.js

Parse, validate, manipulate, and display dates

Library home page: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (moment version) Remediation Possible** Reachability
CVE-2017-18214 High 7.5 moment-2.5.1.min.js Direct moment - 2.19.3
CVE-2016-4055 Medium 6.5 moment-2.5.1.min.js Direct moment - 2.11.2

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

Details

CVE-2017-18214 ### Vulnerable Library - moment-2.5.1.min.js

Parse, validate, manipulate, and display dates

Library home page: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Dependency Hierarchy: - :x: **moment-2.5.1.min.js** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The moment module before 2.19.3 for Node.js is prone to a regular expression denial of service via a crafted date string, a different vulnerability than CVE-2016-4055.

Publish Date: 2018-03-04

URL: CVE-2017-18214

### 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://github.com/advisories/GHSA-446m-mv8f-q348

Release Date: 2018-03-04

Fix Resolution: moment - 2.19.3

CVE-2016-4055 ### Vulnerable Library - moment-2.5.1.min.js

Parse, validate, manipulate, and display dates

Library home page: https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.5.1/moment.min.js

Path to dependency file: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Path to vulnerable library: /npm_and_yarn/spec/fixtures/projects/yarn/duplicate_indirect_dependency/node_modules/cucumber-html-reporter/samples/html_reports/cucumber_report_hierarchy.html

Dependency Hierarchy: - :x: **moment-2.5.1.min.js** (Vulnerable Library)

Found in base branch: main

### Vulnerability Details

The duration function in the moment package before 2.11.2 for Node.js allows remote attackers to cause a denial of service (CPU consumption) via a long string, aka a "regular expression Denial of Service (ReDoS)."

Publish Date: 2017-01-23

URL: CVE-2016-4055

### CVSS 3 Score Details (6.5)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: Low - 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://github.com/advisories/GHSA-87vv-r9j6-g5qv

Release Date: 2017-01-23

Fix Resolution: moment - 2.11.2