CVE-2022-25887
JSON

5.3medium

Regular Expression Denial of Service (ReDoS)

Severity
5.3medium CVSS:3.1 by snyk
Exploit likelihood
1.60% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-cgfm-xwp7-2cvr

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

Product or packageVersionsReported by
sanitize-htmlfrom unspecified before 2.7.1CVE List
sanitize-html (npm)before 2.7.1GitHub Advisory Database
apostrophecms sanitize-htmlbefore 2.7.1NVD

All scores

snyk5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

What each source says

CVE List

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.

NVD (es)

El paquete sanitize-html versiones anteriores a 2.7.1, es vulnerable a una Denegación de Servicio por Expresión Regular (ReDoS) debido a una inseguridad de la lógica de reemplazo global de expresiones regulares en la eliminación de comentarios HTML

References

Sources

SourceRecordLicence
CVE ListCVE-2022-25887 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-cgfm-xwp7-2cvr changed 2024-04-22CC-BY-4.0
NVDCVE-2022-25887 changed 2026-06-17Public domain