CVE-2022-25887

HIGH
Published Aug 30, 20223y ago · Modified Jun 17, 20262w ago
7.5 CVSS 3.1
High
Find Similar
Published Aug 30, 2022 3y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
7.5
Exploitability
3.9
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

No active exploitation signals — not in CISA KEV and no EPSS score yet.

Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-1333

Affected Products 1

VendorProductVersionRange
apostrophecmssanitize-html* <2.7.1

References 4

  • github.com https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
    PatchThird Party Advisory
  • github.com https://github.com/apostrophecms/sanitize-html/pull/557
    Issue TrackingPatchThird Party Advisory
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102
    PatchThird Party Advisory
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526
    PatchThird Party Advisory

Remediation

  • github.com https://github.com/apostrophecms/sanitize-html/commit/b4682c12fd30e12e82fa2d9b766de91d7d2cd23c
    PatchThird Party Advisory
  • github.com https://github.com/apostrophecms/sanitize-html/pull/557
    Issue TrackingPatchThird Party Advisory
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-3008102
    PatchThird Party Advisory
  • security.snyk.io https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-2957526
    PatchThird Party Advisory