CVEvulnerability
CVE-2022-25887
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2022-08-30
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CVSS 3.1 ([email protected])
- 7.5 HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-1333
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 configurations
• apostrophecms sanitize-html (< 2.7.1)
Related
Weakness · CWE (1)
- CWE-1333 Inefficient Regular Expression Complexity weakness
References
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557 Issue Tracking, Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c Patch, Third Party Advisory
- https://github.com/apostrophecms/sanitize-html/pull/557 Issue Tracking, Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102 Patch, Third Party Advisory
- https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526 Patch, Third Party Advisory