HIGH 7.5 npm

Sanitize-html Vulnerable To REDoS Attacks

GHSA-cgfm-xwp7-2cvr · CVE-2022-25887

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes