Skip to content
OpenAdvisories
Medium · 5.3 CVE-2022-25887 EUVD-2022-6537GHSA-cgfm-xwp7-2cvr

Regular Expression Denial of Service (ReDoS)

Published Aug 30, 2022 · Updated Sep 17, 2024 · Assigned by snyk

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.

Affected products

VendorProductAffectedFixed
— sanitize-html unspecified – < 2.7.1 2.7.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-sanitize-html 2.7.1+~2.6.2-1 —
Debian 13 node-sanitize-html 2.7.1+~2.6.2-1 —
Debian 12 node-sanitize-html 2.7.1+~2.6.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 jupyter-notebook +1 No fix yet —
Ubuntu 26.04 LTS node-sanitize-html No fix yet —
Ubuntu 25.10 jupyter-notebook +1 No fix yet —
Ubuntu 24.04 LTS node-sanitize-html No fix yet —
Ubuntu 22.04 LTS node-sanitize-html No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS jupyter-notebook 6.4.12-2.2ubuntu1+esm1 USN-7464-1
Ubuntu Pro 22.04 LTS jupyter-notebook 6.4.8-1ubuntu0.1+esm1 USN-7464-1

Affected packages

EcosystemPackageAffectedFixedRecord
npm sanitize-html < 2.7.1 2.7.1 GHSA-cgfm-xwp7-2cvr

Advisories 3

References