Silverstripe Framework Cross-Site Scripting Vulnerability in Asset Admin via oEmbed Shortcode

Vulnerability

A cross-site scripting vulnerability has been identified in the Silverstripe Asset Admin component, specifically in versions of the Silverstripe Framework prior to 5.3.8. The issue arises when the 'insert media' feature is used, as the linked oEmbed JSON contains an HTML attribute that replaces the embed shortcode without proper sanitization. This oversight allows script payloads to be executed on both the Content Management System (CMS) and the front end of the website.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject malicious scripts that are executed in the context of the user.

Reproduction

To reproduce this vulnerability, use the 'insert media' functionality in the Silverstripe Asset Admin. The oEmbed JSON linked to the media will include an HTML attribute that replaces the embed shortcode. Because the HTML is not sanitized, a script payload can be injected and executed on both the CMS and the website's front end.

Remediation

Users are advised to upgrade to Silverstripe Framework version 5.3.8 or later.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
5.2
impact
1.7
exploitability
7.6
remediation
7.7
relevance
0.0
threat
4.9
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.