CVE-2026-88988: CVE-2026-88988: Stored Cross-Site Scripting via SVG Data URIs in Silverstripe Framework
CVE-2026-88988: Stored Cross-Site Scripting via SVG Data URIs in Silverstripe Framework Vulnerability ID: CVE-2026-88988 CVSS Score: 5.4 Published: 2026-11-16 A Stored Cross-Site Scripting (XSS) vulnerability exists
CVE-2026-88988: Stored Cross-Site Scripting via SVG Data URIs in Silverstripe Framework
Vulnerability ID: CVE-2026-88988
CVSS Score: 5.4
Published: 2026-11-16
A Stored Cross-Site Scripting (XSS) vulnerability exists in Silverstripe Framework versions prior to 6.2.13 within the SilverStripe\Core\XssSanitiser component. The HTML sanitizer fails to strip SVG data URIs (data:image/svg*) from dangerous HTML attributes such as href, src, lowsrc, and data. Authenticated CMS authors can persist crafted SVG data URIs in stored content, leading to arbitrary JavaScript execution in the browser context of users who view or interact with the rendered page.
TL;DR
Silverstripe Framework prior to 6.2.13 does not strip data:image/svg* URIs during HTML sanitization, allowing authenticated content authors to execute stored XSS via navigational links or embedded subdocument tags.
⚠️ Exploit Status: POC
Technical Details
- Vulnerability Type: Stored Cross-Site Scripting (CWE-79)
- Affected Component: SilverStripe\Core\XssSanitiser
- Attack Vector: Network (Authenticated CMS Author)
- CVSS v3.1 Score: 5.4 Medium (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N)
- Affected Versions: < 6.2.13
- Patched Version: 6.2.13
- Exploit Status: Proof-of-Concept (Unit Tests)
- CISA KEV Status: Not Listed
Affected Systems
- silverstripe/silverstripe-framework
- Silverstripe CMS
-
silverstripe/silverstripe-framework: < 6.2.13 (Fixed in:
6.2.13)
Code Analysis
Commit: 9b61e6d
[CVE-2026-88988] XSS via SVG data URI (#12040)
diff --git a/src/Core/XssSanitiser.php b/src/Core/XssSanitiser.php
index 35a4d5e..46f912c 100644
--- a/src/Core/XssSanitiser.php
+++ b/src/Core/XssSanitiser.php
@@ -35,10 +35,11 @@ class XssSanitiser
private bool $keepInnerHtmlOnRemoveElement = true;
+ /**
+ * This is not config and only used for unit testing
+ */
+ private bool $removeDataSvg = true;
+
- private bool $removeSvgFile = true;
-
/**
* Remove XSS attack vectors from an HTML fragment string
*/
@@ -224,6 +225,12 @@ private function getStripAttributeContentsRegex(): string
$this->splitWithWhitespaceRegex('data:application/xml'),
$this->splitWithWhitespaceRegex('vbscript:'),
];
+ if ($this->removeDataSvg) {
+ // SVG documents can carry scripts, so an SVG data URI is a script-capable document reference.
+ // Note the media type is matched as a prefix so that `data:image/svg+xml` and any other
+ // `data:image/svg*` variation are both caught.
+ $regexes[] = $this->splitWithWhitespaceRegex('data:image/svg');
+ }
// Regex is "starts with any of these, with optional whitespace at the start, case insensitive"
// \x08 is the backspace character, though it only causes vulnerabilities if it's at the start
// or end of a string
Exploit Details
- GitHub: Official regression unit tests in XssSanitiserTest.php demonstrating SVG data URI XSS vectors.
Mitigation Strategies
- Upgrade silverstripe/silverstripe-framework to version 6.2.13 or later.
- Implement a strict Content Security Policy (CSP) that disallows 'data:' URIs in script-src, frame-src, and object-src directives.
- Deploy WAF rules to inspect and block CMS content submissions containing obfuscated or standard data:image/svg* URIs within HTML attributes.
- Audit existing database HTMLText columns (such as SiteTree content fields) for previously stored data:image/svg payloads.
Remediation Steps:
- Run 'composer update silverstripe/framework:^6.2.13' in the project root directory.
- Verify the installed version using 'composer show silverstripe/framework'.
- Configure the web server or application middleware to emit a Content-Security-Policy header restricting frame-src and object-src from loading data: URIs.
- Query the CMS database for any existing content records matching '%data:%image/svg%' and re-save or sanitize them.
References
- GitHub Security Advisory GHSA-xwg4-8hqh-79jq
- Silverstripe Framework Pull Request #12040
- Fix Commit 9b61e6d04da1a3183c4ef4081cb64fd31ae0701f
- Silverstripe Framework Release 6.2.13
- Silverstripe Official Security Release CVE-2026-88988
- NVD Detail for CVE-2026-88988
- CVE.org Record for CVE-2026-88988
- CVE List V5 JSON Record
Read the full report for CVE-2026-88988 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.