GitHub Advisoryadvisory · npm

GHSA-cgfm-xwp7-2cvr Sanitize-html Vulnerable To REDoS Attacks

HIGH Published 2022-08-31 Modified 2024-04-22 Official page ↗
Aliases
CVE-2022-25887
Ecosystem
npm
Packages
sanitize-html
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-1333
Reviewed
2024-04-22

Affected packages

• npm sanitize-html: < 2.7.1 → fixed in 2.7.1

Description

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.

Related

Alias · CVE (1)

  • CVE-2022-25887 The package sanitize-html before 2.7.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure global regular… vulnerability

Weakness · CWE (1)

  • CWE-1333 Inefficient Regular Expression Complexity weakness

References