-
Notifications
You must be signed in to change notification settings - Fork 0
Description
CVE-2022-25887 - High Severity Vulnerability
Vulnerable Library - sanitize-html-1.20.1.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.20.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/sanitize-html/package.json
Dependency Hierarchy:
- foodoc-0.0.9.tgz (Root Library)
- ❌ sanitize-html-1.20.1.tgz (Vulnerable Library)
Found in base branch: dev
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
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: sanitize-html - 2.7.1
Step up your Open Source Security Game with Mend here