DimaMend / juice-shop

MIT License
0 stars 0 forks source link

sanitize-html-1.4.2.tgz: 13 vulnerabilities (highest severity is: 9.1) - autoclosed #4

Closed mend-for-github-com[bot] closed 4 months ago

mend-for-github-com[bot] commented 4 months ago
Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Vulnerabilities

CVE Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (sanitize-html version) Remediation Possible**
CVE-2019-10744 Critical 9.1 Not Defined 1.5% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2022-25887 High 7.5 Not Defined 0.1% sanitize-html-1.4.2.tgz Direct 2.7.1
CVE-2020-8203 High 7.4 Not Defined 1.7% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2021-23337 High 7.2 Not Defined 0.6% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2019-1010266 Medium 6.5 Not Defined 0.3% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2018-3721 Medium 6.5 Not Defined 0.1% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2017-16016 Medium 6.1 Not Defined 0.1% sanitize-html-1.4.2.tgz Direct 1.11.2
CVE-2016-1000237 Medium 6.1 Not Defined 0.1% sanitize-html-1.4.2.tgz Direct 1.4.3
CVE-2018-16487 Medium 5.6 Not Defined 0.1% lodash-2.4.2.tgz Transitive 1.7.1
CVE-2024-21501 Medium 5.3 Not Defined 0.0% sanitize-html-1.4.2.tgz Direct 2.12.1
CVE-2021-26540 Medium 5.3 Not Defined 0.1% sanitize-html-1.4.2.tgz Direct 2.3.2
CVE-2021-26539 Medium 5.3 Not Defined 0.1% sanitize-html-1.4.2.tgz Direct 2.3.1
CVE-2020-28500 Medium 5.3 Not Defined 0.2% lodash-2.4.2.tgz Transitive 1.7.1

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

Details

CVE-2019-10744 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Versions of lodash lower than 4.17.12 are vulnerable to Prototype Pollution. The function defaultsDeep could be tricked into adding or modifying properties of Object.prototype using a constructor payload.

Publish Date: 2019-07-26

URL: CVE-2019-10744

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 1.5%

### 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: None - 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-jf85-cpcp-j695

Release Date: 2019-07-26

Fix Resolution (lodash): 4.17.12

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2022-25887 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular expression replacement logic of HTML comment removal.

Publish Date: 2022-08-30

URL: CVE-2022-25887

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

### 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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-25887

Release Date: 2022-08-30

Fix Resolution: 2.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2020-8203 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Prototype pollution attack when using _.zipObjectDeep in lodash before 4.17.20.

Publish Date: 2020-07-15

URL: CVE-2020-8203

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 1.7%

### CVSS 3 Score Details (7.4)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - 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/1523

Release Date: 2020-07-15

Fix Resolution (lodash): 4.17.9

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2021-23337 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Lodash versions prior to 4.17.21 are vulnerable to Command Injection via the template function.

Publish Date: 2021-02-15

URL: CVE-2021-23337

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.6%

### CVSS 3 Score Details (7.2)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: High - 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-35jh-r3h4-6jhm

Release Date: 2021-02-15

Fix Resolution (lodash): 4.17.21

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2019-1010266 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

lodash prior to 4.17.11 is affected by: CWE-400: Uncontrolled Resource Consumption. The impact is: Denial of service. The component is: Date handler. The attack vector is: Attacker provides very long strings, which the library attempts to match using a regular expression. The fixed version is: 4.17.11.

Publish Date: 2019-07-17

URL: CVE-2019-1010266

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.3%

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

Release Date: 2019-07-17

Fix Resolution (lodash): 4.17.11

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2018-3721 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

lodash node module before 4.17.5 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via defaultsDeep, merge, and mergeWith functions, which allows a malicious user to modify the prototype of "Object" via __proto__, causing the addition or modification of an existing property that will exist on all objects. Mend Note: Converted from WS-2019-0184, on 2022-11-08.

Publish Date: 2018-06-07

URL: CVE-2018-3721

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.npmjs.com/advisories/1067

Release Date: 2018-06-07

Fix Resolution (lodash): 4.17.5

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2017-16016 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Sanitize-html is a library for scrubbing html input of malicious values. Versions 1.11.1 and below are vulnerable to cross site scripting (XSS) in certain scenarios: If allowed at least one nonTextTags, the result is a potential XSS vulnerability.

Publish Date: 2018-06-04

URL: CVE-2017-16016

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

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

Release Date: 2018-04-26

Fix Resolution: 1.11.2

In order to enable automatic remediation, please create workflow rules

CVE-2016-1000237 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

sanitize-html before 1.4.3 has XSS.

Publish Date: 2020-01-23

URL: CVE-2016-1000237

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

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

Release Date: 2020-01-23

Fix Resolution: 1.4.3

In order to enable automatic remediation, please create workflow rules

CVE-2018-16487 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

A prototype pollution vulnerability was found in lodash <4.17.11 where the functions merge, mergeWith, and defaultsDeep can be tricked into adding or modifying properties of Object.prototype.

Publish Date: 2019-02-01

URL: CVE-2018-16487

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

### CVSS 3 Score Details (5.6)

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

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://hackerone.com/reports/380873

Release Date: 2019-02-01

Fix Resolution (lodash): 4.17.11

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules

CVE-2024-21501 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.

Publish Date: 2024-02-24

URL: CVE-2024-21501

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.0%

### 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: Low - Integrity Impact: None - Availability Impact: None

For more information on CVSS3 Scores, click here.

### Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2024-21501

Release Date: 2024-02-24

Fix Resolution: 2.12.1

In order to enable automatic remediation, please create workflow rules

CVE-2021-26540 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Apostrophe Technologies sanitize-html before 2.3.2 does not properly validate the hostnames set by the "allowedIframeHostnames" option when the "allowIframeRelativeUrls" is set to true, which allows attackers to bypass hostname whitelist for iframe element, related using an src value that starts with "/\\example.com".

Publish Date: 2021-02-08

URL: CVE-2021-26540

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

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

Release Date: 2021-02-08

Fix Resolution: 2.3.2

In order to enable automatic remediation, please create workflow rules

CVE-2021-26539 ### Vulnerable Library - sanitize-html-1.4.2.tgz

Clean up user-submitted HTML, preserving whitelisted elements and whitelisted attributes on a per-element basis

Library home page: https://registry.npmjs.org/sanitize-html/-/sanitize-html-1.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/package.json

Dependency Hierarchy: - :x: **sanitize-html-1.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Apostrophe Technologies sanitize-html before 2.3.1 does not properly handle internationalized domain name (IDN) which could allow an attacker to bypass hostname whitelist validation set by the "allowedIframeHostnames" option.

Publish Date: 2021-02-08

URL: CVE-2021-26539

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.1%

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

Release Date: 2021-02-08

Fix Resolution: 2.3.1

In order to enable automatic remediation, please create workflow rules

CVE-2020-28500 ### Vulnerable Library - lodash-2.4.2.tgz

A utility library delivering consistency, customization, performance, & extras.

Library home page: https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz

Path to dependency file: /package.json

Path to vulnerable library: /node_modules/sanitize-html/node_modules/lodash/package.json

Dependency Hierarchy: - sanitize-html-1.4.2.tgz (Root Library) - :x: **lodash-2.4.2.tgz** (Vulnerable Library)

Found in HEAD commit: c93fae24360417eb6ff9e1859197b1c29d71ebe7

Found in base branch: master

### Vulnerability Details

Lodash versions prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the toNumber, trim and trimEnd functions. Mend Note: After conducting further research, Mend has determined that CVE-2020-28500 only affects environments with versions 4.0.0 to 4.17.20 of Lodash.

Publish Date: 2021-02-15

URL: CVE-2020-28500

### Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.2%

### 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://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28500

Release Date: 2021-02-15

Fix Resolution (lodash): 4.17.21

Direct dependency fix Resolution (sanitize-html): 1.7.1

In order to enable automatic remediation, please create workflow rules


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

mend-for-github-com[bot] commented 4 months ago

:information_source: This issue was automatically closed by Mend because it is a duplicate of an existing issue: #5

mend-for-github-com[bot] commented 4 months ago

:information_source: This issue was automatically closed by Mend because it is a duplicate of an existing issue: #5