Soontao / RSSHub

Forked, Everything is RSSible
MIT License
1 stars 0 forks source link

mercury-parser-2.2.0.tgz: 6 vulnerabilities (highest severity is: 9.8) - autoclosed #22

Closed mend-bolt-for-github[bot] closed 1 year ago

mend-bolt-for-github[bot] commented 2 years ago
Vulnerable Library - mercury-parser-2.2.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/moment/package.json

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (mercury-parser version) Remediation Available
WS-2022-0280 Critical 9.8 moment-timezone-0.5.26.tgz Transitive N/A*
WS-2022-0284 Critical 9.1 moment-timezone-0.5.26.tgz Transitive N/A*
CVE-2022-31129 High 7.5 moment-2.23.0.tgz Transitive 2.2.1
CVE-2022-24785 High 7.5 moment-2.23.0.tgz Transitive 2.2.1
CVE-2020-11023 Medium 6.1 jquery-3.4.1.tgz Transitive 2.2.1
CVE-2020-11022 Medium 6.1 jquery-3.4.1.tgz Transitive 2.2.1

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

Details

WS-2022-0280 ### Vulnerable Library - moment-timezone-0.5.26.tgz

Parse and display moments in any timezone.

Library home page: https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.26.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/moment-timezone/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **moment-timezone-0.5.26.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

Command Injection in moment-timezone before 0.5.35.

Publish Date: 2022-08-30

URL: WS-2022-0280

### 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

Origin: https://github.com/advisories/GHSA-56x4-j7p9-fcf9

Release Date: 2022-08-30

Fix Resolution: moment-timezone - 0.5.35

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
WS-2022-0284 ### Vulnerable Library - moment-timezone-0.5.26.tgz

Parse and display moments in any timezone.

Library home page: https://registry.npmjs.org/moment-timezone/-/moment-timezone-0.5.26.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/moment-timezone/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **moment-timezone-0.5.26.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

Cleartext Transmission of Sensitive Information in moment-timezone

Publish Date: 2022-08-30

URL: WS-2022-0284

### CVSS 3 Score Details (9.1)

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: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/advisories/GHSA-v78c-4p63-2j6c

Release Date: 2022-08-30

Fix Resolution: moment-timezone - 0.5.35

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2022-31129 ### Vulnerable Library - moment-2.23.0.tgz

Parse, validate, manipulate, and display dates

Library home page: https://registry.npmjs.org/moment/-/moment-2.23.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/moment/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **moment-2.23.0.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

moment is a JavaScript date library for parsing, validating, manipulating, and formatting dates. Affected versions of moment were found to use an inefficient parsing algorithm. Specifically using string-to-date parsing in moment (more specifically rfc2822 parsing, which is tried by default) has quadratic (N^2) complexity on specific inputs. Users may notice a noticeable slowdown is observed with inputs above 10k characters. Users who pass user-provided strings without sanity length checks to moment constructor are vulnerable to (Re)DoS attacks. The problem is patched in 2.29.4, the patch can be applied to all affected versions with minimal tweaking. Users are advised to upgrade. Users unable to upgrade should consider limiting date lengths accepted from user input.

Publish Date: 2022-07-06

URL: CVE-2022-31129

### 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/moment/moment/security/advisories/GHSA-wc69-rhjr-hc9g

Release Date: 2022-07-06

Fix Resolution (moment): 2.29.4

Direct dependency fix Resolution (@postlight/mercury-parser): 2.2.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2022-24785 ### Vulnerable Library - moment-2.23.0.tgz

Parse, validate, manipulate, and display dates

Library home page: https://registry.npmjs.org/moment/-/moment-2.23.0.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/moment/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **moment-2.23.0.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

Moment.js is a JavaScript date library for parsing, validating, manipulating, and formatting dates. A path traversal vulnerability impacts npm (server) users of Moment.js between versions 1.0.1 and 2.29.1, especially if a user-provided locale string is directly used to switch moment locale. This problem is patched in 2.29.2, and the patch can be applied to all affected versions. As a workaround, sanitize the user-provided locale name before passing it to Moment.js.

Publish Date: 2022-04-04

URL: CVE-2022-24785

### 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: https://github.com/moment/moment/security/advisories/GHSA-8hfj-j24r-96c4

Release Date: 2022-04-04

Fix Resolution (moment): 2.29.2

Direct dependency fix Resolution (@postlight/mercury-parser): 2.2.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2020-11023 ### Vulnerable Library - jquery-3.4.1.tgz

JavaScript library for DOM operations

Library home page: https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/jquery/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **jquery-3.4.1.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

In jQuery versions greater than or equal to 1.0.3 and before 3.5.0, passing HTML containing

Publish Date: 2020-04-29

URL: CVE-2020-11023

### CVSS 3 Score Details (6.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - Integrity Impact: Low - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://github.com/jquery/jquery/security/advisories/GHSA-jpcq-cgw6-v4j6,https://github.com/rails/jquery-rails/blob/master/CHANGELOG.md#440

Release Date: 2020-04-29

Fix Resolution (jquery): 3.5.0

Direct dependency fix Resolution (@postlight/mercury-parser): 2.2.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
CVE-2020-11022 ### Vulnerable Library - jquery-3.4.1.tgz

JavaScript library for DOM operations

Library home page: https://registry.npmjs.org/jquery/-/jquery-3.4.1.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/@postlight/mercury-parser/node_modules/jquery/package.json

Dependency Hierarchy: - mercury-parser-2.2.0.tgz (Root Library) - :x: **jquery-3.4.1.tgz** (Vulnerable Library)

Found in HEAD commit: 05b41583ba25ff41304d8cc9722f6f88f1a7d021

Found in base branch: master

### Vulnerability Details

In jQuery versions greater than or equal to 1.2 and before 3.5.0, passing HTML from untrusted sources - even after sanitizing it - to one of jQuery's DOM manipulation methods (i.e. .html(), .append(), and others) may execute untrusted code. This problem is patched in jQuery 3.5.0.

Publish Date: 2020-04-29

URL: CVE-2020-11022

### CVSS 3 Score Details (6.1)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Changed - Impact Metrics: - Confidentiality Impact: Low - 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-2020-11022

Release Date: 2020-04-29

Fix Resolution (jquery): 3.5.0

Direct dependency fix Resolution (@postlight/mercury-parser): 2.2.1

Step up your Open Source Security Game with Mend [here](https://www.whitesourcesoftware.com/full_solution_bolt_github)
mend-bolt-for-github[bot] commented 1 year ago

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.