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-2026-40186

22
FAUCET Score

OVERVIEW CVE-2026-40186 is a cross-site scripting (XSS) vulnerability in the sanitize-html package versions 2.17.1 and earlier, which affects ApostropheCMS 4.28.0 through its dependency chain. A regression introduced in commit 49d0bb7 causes the sanitizer to incorrectly handle entity-encoded HTML within textarea and option elements. The vulnerability allows attackers to bypass the allowedTags filter by exploiting an incorrect assumption about how htmlparser2 10.x processes entity decoding, resulting in arbitrary HTML injection. SEVERITY The vulnerability carries a CVSS 3.1 score of 6.1 (MEDIUM) with a network-based attack vector requiring no privileges but necessitating user interaction. Attack complexity is low, meaning exploitation requires minimal effort. The impact includes low-level confidentiality and integrity compromises through XSS payload injection, though no availability impact is present. The vulnerability is particularly concerning in non-default configurations where option or textarea elements are included in allowedTags, common in form builders and content management platforms. EXPLOITATION STATUS There is currently no evidence of active exploitation in the wild, with the EPSS score of 0.0001 indicating minimal probability of exploitation. The vulnerability does not appear on the CISA Known Exploited Vulnerabilities catalog and is classified as inactive on threat intelligence hotlists. However, patches are available in sanitize-html version 2.17.2 and ApostropheCMS 4.29.0, and organizations should prioritize updates to remediate this preventable risk vector.

Impacted Technologies

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

CVSS Data

CVSS version used by this source: 3.1

6.1MEDIUM

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

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality Impact
LOW
Integrity Impact
LOW
Availability Impact
NONE
Exploitability Score
2.8
Impact Score
2.7
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.24%
Probability of exploitation in next 30 days
EPSS Percentile
14.6%
Percentile rank of EPSS score among Peer Group
As of 2026-07-25
Model: v2026.06.15
This CVE's current EPSS score of 0.0024 is in the 15th percentile among its peer group of 26,219 CVEs.

Social Chatter

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

Media Mentions

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 (2)

github_advisorypatch availablevia nvd_reference
View patch
npmpatch availablevia ghsa
Product: sanitize-htmlFixed in: 2.17.3

Vendor Advisories (1)

npmGHSA-9mrh-v2v3-xpfmmedium

sanitize-html allowedTags Bypass via Entity-Decoded Text in nonTextTags Elements

Apr 16, 2026

References

github.com / apostrophecms/apostrophe/commit/7ca2d16237c72718ef7e5c7ae0458e6027ac4f64
Patch
github.com / apostrophecms/apostrophe/security/advisories/GHSA-9mrh-v2v3-xpfm
ExploitVendor Advisory