Read the docs

Cross-site scripting in sanitize-html via SMIL attributeName values

Priority LOW 27CWE-184Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Passive
Attack complexity
High
Attack requirements
Present
Impact type
—
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

sanitize-html from 2.17.7 before 2.18.2 contains a cross-site scripting flaw caused by an incomplete list of disallowed inputs (CWE-184). Attackers can bypass allowedSchemes by supplying SVG animation attributeName values with multiple colons, such as xlink:href:x, with javascript: URLs in values, from, or to attributes. Script runs when a victim clicks the animated link.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

sanitize-html 2.17.7 before 2.18.2 contains a cross-site scripting vulnerability that allows attackers to bypass allowedSchemes by supplying SVG animation attributeName values with multiple colons. Attackers can submit markup like attributeName xlink:href:x with javascript: URLs in values, from, or to attributes, executing script when victims click the animated link.

Why it matters now

Fix Fixed sanitize-html (apostrophecms): 2.18.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
apostrophecmssanitize-html2.17.7 to before 2.18.22.18.2Patch availableCNA
  • sanitize-html Vendorapostrophecms Affected 2.17.7 to before 2.18.2 Fixed in 2.18.2 Patch available CNA

Remediation

Upgrade apostrophecms sanitize-html to version 2.18.2.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA sanitize-html (apostrophecms) Fixed in 2.18.2

Timeline

  1. 2026-12-04 Threatist record created from CVE-2026-145156

References

  • TI-2026-25223 ApostropheCMS has Arbitrary File Write (Zip Slip / Path Traversal) in Import-Export Gzip Extraction CVSS 3.1CRITICAL 10.0
  • TI-2026-32848 Apostrophe has default XSS via `xmp` raw-text passthrough in `sanitize-html` CVSS 3.1CRITICAL 9.3
  • TI-2026-38664 @apostrophecms/seo Vulnerable to Stored XSS via Unsanitized Google Analytics / GTM ID Injected into Script Tag CVSS 3.1HIGH 8.7
  • TI-2026-27673 ApostropheCMS: Stored XSS in SEO Fields Leads to Authenticated API Data Exposure in ApostropheCMS CVSS 3.1HIGH 8.7
  • TI-2026-76992 Unauthenticated resource exhaustion via ApostropheCMS import routes CVSS 3.1HIGH 7.5
  • TI-2026-76974 ApostropheCMS leaves rejected CSV uploads in temporary directory CVSS 3.1HIGH 7.5
See all 66 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences