Advisory

GHSA-cgfm-xwp7-2cvr

Also known as: CVE-2022-25887

Summary

Sanitize-html Vulnerable To REDoS Attacks

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-08-31 00:00 UTC
Modified
2024-04-22 23:56 UTC

Affected packages and fixes

sanitize-html

npm · All systems

Affected

  • introduced 0, fixed 2.7.1 (semver)

Fixed versions

2.7.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences