CVE-2026-65900
Description
DOMPurify versions >=3.0.0 and before 3.4.8, when configured with SAFE_FOR_TEMPLATES together with a DOM output mode (RETURN_DOM, RETURN_DOM_FRAGMENT, or IN_PLACE), fail to strip template expressions (e.g. ${evil}, {{evil}}, <%evil%>) inside element content. The final normalization/scrub pass (_scrubTemplateExpressions) uses a NodeIterator and node.normalize() that do not descend into template.content, so expressions that only form after adjacent text nodes merge survive sanitization. This bypasses SAFE_FOR_TEMPLATES and can allow a downstream template engine to evaluate attacker-supplied expressions. The string output path is not affected.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
dompurifynpm | >= 3.0.0, < 3.4.8 | 3.4.8 |
Affected products
31- osv-coords29 versionspkg:apk/chainguard/wazuh-dashboard-pluginspkg:apk/chainguard/kibana-9.4-iamguardedpkg:apk/wolfi/nextcloud-server-32pkg:apk/chainguard/librechatpkg:apk/chainguard/wazuh-dashboard-dashboards-mapspkg:apk/chainguard/nextcloud-server-33pkg:apk/chainguard/kibana-9.4pkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/nextcloud-server-34pkg:apk/chainguard/wazuh-dashboardpkg:apk/chainguard/wazuh-dashboard-alerting-dashboards-plugin-fipspkg:apk/chainguard/wazuh-dashboard-dashboards-maps-fipspkg:apk/chainguard/wazuh-dashboard-dashboards-reportingpkg:apk/chainguard/wazuh-dashboard-dashboards-reporting-fipspkg:apk/chainguard/wazuh-dashboard-dashboards-visualizationspkg:apk/chainguard/wazuh-dashboard-dashboards-visualizations-fipspkg:apk/chainguard/wazuh-dashboard-plugins-fipspkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/wazuh-dashboard-alerting-dashboards-pluginpkg:apk/chainguard/wazuh-dashboard-anomaly-detection-dashboards-pluginpkg:apk/chainguard/wazuh-dashboard-anomaly-detection-dashboards-plugin-fipspkg:apk/chainguard/wazuh-dashboard-dashboards-notifications-fipspkg:apk/chainguard/wazuh-dashboard-dashboards-notificationspkg:apk/chainguard/nextcloud-server-32pkg:apk/chainguard/wazuh-dashboard-fipspkg:apk/wolfi/langfuse-3-workerpkg:apk/chainguard/wazuh-dashboard-index-management-dashboards-pluginpkg:apk/chainguard/wazuh-dashboard-index-management-dashboards-plugin-fipspkg:apk/wolfi/nextcloud-server-33
< 4.14.5-r7+ 28 more
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 9.4.2-r6
- (no CPE)range: < 32.0.12-r0
- (no CPE)range: < 0.8.7-r1
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 33.0.6-r0
- (no CPE)range: < 9.4.2-r6
- (no CPE)range: < 3.191.0-r0
- (no CPE)range: < 34.0.1-r4
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 3.192.0-r0
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 32.0.12-r0
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 3.191.0-r0
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 4.14.5-r7
- (no CPE)range: < 33.0.6-r0
Patches
Vulnerability mechanics
References
3- github.com/cure53/DOMPurify/security/advisories/GHSA-gvmj-g25r-r7wrnvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-gvmj-g25r-r7wrghsaADVISORY
- www.vulncheck.com/advisories/dompurify-before-template-expression-injection-via-return-domnvdThird Party Advisory
News mentions
0No linked articles in our index yet.