Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-25887

25
FAUCET Score

CVE-2022-25887 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting the sanitize-html package prior to version 2.7.1, including its use in ApostropheCMS. This flaw, stemming from insecure global regular expression replacement logic for HTML comment removal, carries a high CVSS score of 7.5, indicating a network-exploitable vulnerability with low attack complexity and a high impact on availability. There is currently no evidence of active exploitation, public exploit code, or significant community discussion surrounding this CVE.

Impacted Technologies

VendorProductVersion(s)CPE
< 2.7.1CPE matchmatch criteria
cpe:2.3:a:apostrophecms:sanitize-html:*:*:*:*:*:node.js:*:*

CVSS Data

CVSS version used by this source: 3.1

5.3MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
NONE
Integrity Impact
NONE
Availability Impact
LOW
Exploitability Score
3.9
Impact Score
1.4
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.15%
Probability of exploitation in next 30 days
EPSS Percentile
63.6%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0115 is in the 42nd percentile among its peer group of 51,551 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (9)

github_advisorypatch availablevia nvd_reference
View patch
npmpatch availablevia ghsa
Product: sanitize-htmlFixed in: 2.7.1
redhatvendor investigatingvia redhat_api
Product: OpenShift Service Mesh 2.1Fixed in: servicemesh-prometheus
redhatno patchvia redhat_api
Product: Red Hat Ansible Automation Platform 2Fixed in: automation-controller
redhatno patchvia redhat_api
Product: Red Hat OpenShift Container Platform 3.11Fixed in: openshift3/ose-console
redhatno patchvia redhat_api
Product: Red Hat OpenShift Container Platform 4Fixed in: openshift4/ose-console
redhatno patchvia redhat_api
Product: Red Hat OpenShift Dev SpacesFixed in: devspaces/dashboard-rhel8
redhatno patchvia redhat_api
Product: OpenShift Service Mesh 2.0Fixed in: servicemesh-prometheus
redhatno patchvia redhat_api
Product: Red Hat Advanced Cluster Management for Kubernetes 2Fixed in: rhacm2/console-rhel8

Vendor Advisories (2)

npmGHSA-cgfm-xwp7-2cvrhigh

Sanitize-html Vulnerable To REDoS Attacks

Aug 31, 2022
redhatCVE-2022-25887Low

sanitize-html: insecure global regular expression replacement logic may lead to ReDoS

Aug 30, 2022

References

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