Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-30148 Overview
CVE-2025-30148 is a stored cross-site scripting (XSS) vulnerability in Silverstripe Framework, the PHP framework that powers Silverstripe CMS. Versions prior to 5.3.23 fail to sanitize backspace characters (\\x08) placed at the boundaries of dangerous URI schemes such as javascript: and vbscript:. An authenticated CMS user with content-editing rights can submit an encoded payload that bypasses server-side sanitization while still executing in the browser. The flaw is categorized under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated content editors can inject persistent JavaScript payloads into rendered pages, enabling session theft, credential harvesting, and privilege escalation against other CMS users and site visitors.
Affected Products
- Silverstripe Framework versions prior to 5.3.23
- Silverstripe CMS deployments built on the affected framework versions
- PHP applications embedding the vulnerable XssSanitiser component
Discovery Timeline
- 2025-04-10 - CVE-2025-30148 published to the National Vulnerability Database
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-30148
Vulnerability Analysis
The vulnerability resides in the server-side XSS sanitization routine within src/Core/XssSanitiser.php. The sanitizer uses a regular expression to detect dangerous URI schemes at the start of attribute values. The original pattern only accounted for whitespace characters preceding scheme keywords, allowing a crafted payload containing the backspace control character (\\x08) to slip past detection. Browsers normalize or ignore the backspace character during URL parsing, so the malicious javascript: handler still fires when the sanitized markup is rendered.
Exploitation requires an account with CMS content-edit permissions and user interaction from a victim who loads the affected page. Because the payload is stored server-side and delivered to every visitor of the compromised page, the scope extends beyond the attacker's own session and can affect administrators and site visitors.
Root Cause
The root cause is an incomplete character class in the sanitization regular expression. The pattern #^\s*(javascript:|vbscript:|...)#iu accepted only \s whitespace at the boundary. Control characters such as \\x08 were not stripped or matched, so a payload like \\x08javascript:alert(1) bypassed server-side filtering while remaining executable client-side.
Attack Vector
An attacker with edit access authors a page or content field containing an HTML attribute whose value begins with a backspace character followed by javascript: and arbitrary script. The server stores the value after sanitization runs but leaves the payload intact. When another user opens the page in the CMS preview or on the public front end, the browser executes the injected script in the site's origin.
// Patch excerpt from src/Core/XssSanitiser.php
$this->splitWithWhitespaceRegex('vbscript:'),
];
// Regex is "starts with any of these, with optional whitespace at the start, case insensitive"
- return '#^\s*(' . implode('|', $regexes) . ')#iu';
+ // \\x08 is the backspace character, though it only causes vulnerabilities if it's at the start
+ // or end of a string
+ return '#^(\s|\\x08)*(' . implode('|', $regexes) . ')(\s|\\x08)*#iu';
}
private function splitWithWhitespaceRegex(string $string): string
Source: Silverstripe Framework commit e99cfd6. The fix expands the boundary character class to include \\x08 at both the start and end of the matched string.
Detection Methods for CVE-2025-30148
Indicators of Compromise
- Content records or database fields containing the backspace byte 0x08 adjacent to strings such as javascript: or vbscript:.
- Rendered pages that trigger browser-side script execution originating from user-authored content fields.
- CMS audit logs showing content edits by lower-privileged users immediately followed by privileged session activity from different IP addresses.
Detection Strategies
- Grep stored content and database dumps for the byte pattern \\x08javascript or \\x08vbscript (case-insensitive) across text and HTML columns.
- Deploy web application firewall rules that block request bodies containing control characters adjacent to URI scheme keywords in HTML attribute contexts.
- Enable Content Security Policy (CSP) reporting and monitor script-src violations originating from CMS-managed pages.
Monitoring Recommendations
- Alert on outbound requests from browser sessions of CMS administrators to unexpected domains shortly after loading edited content.
- Track anomalous session token reuse or session cloning that correlates with recently modified CMS pages.
- Review Silverstripe framework version inventory and flag any instance running below 5.3.23.
How to Mitigate CVE-2025-30148
Immediate Actions Required
- Upgrade Silverstripe Framework to version 5.3.23 or later across all environments.
- Audit existing CMS content for stored payloads containing backspace characters before restoring from backups taken prior to patching.
- Review and tighten CMS role assignments to reduce the number of accounts with content-edit privileges.
Patch Information
The fix is committed in Silverstripe Framework commit e99cfd6 and released in version 5.3.23. See the GitHub Security Advisory GHSA-rhx4-hvx9-j387 and the Silverstripe CVE-2025-30148 release notes for vendor guidance.
Workarounds
- Enforce a strict Content Security Policy that disallows inline scripts and restricts script-src to trusted origins.
- Apply a virtual patch at the reverse proxy or WAF layer to strip control characters from HTML input fields until the upstream upgrade is deployed.
- Restrict CMS content-edit permissions to a minimal, trusted set of users while planning the upgrade.
# Update via Composer to the patched release
composer require silverstripe/framework:^5.3.23
composer update silverstripe/framework
# Verify installed version
php vendor/bin/sake --version | grep -i framework
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

