Open mend-bolt-for-github[bot] opened 2 years ago
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: 15b744adda384be966bd6bcc52d9830c8bab440a
Found in base branch: master
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
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
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
Step up your Open Source Security Game with Mend here
CVE-2022-25887 - High Severity Vulnerability
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: 15b744adda384be966bd6bcc52d9830c8bab440a
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
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
Step up your Open Source Security Game with Mend here