Silverstripe Framework has a XSS via insert media remote file oembed
Date: 2025-01
Affected: composer/silverstripe/framework
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2024-47605
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N)

### Impact When using the "insert media" functionality, the linked oEmbed JSON includes an HTML attribute which will replace the embed shortcode. The HTML is not sanitized before replacing the shortcode, allowing a script payload to be executed on both the CMS and the front-end of the website. ## References - https://www.silverstripe.org/download/security-releases/cve-2024-47605 ## Reported by James Nicoll from [Fujitsu Cyber Security Services](https://www.fujitsu.com/nz/services/security/)


Mitigations:

Architectural layers (MAESTRO):