GHSA-m8v7-x398-pxrf Silverstripe XSS in CMS Edit Page
An attacker can inject arbitrary HTML into the CMS Edit page via a crafted URL, requiring a site administrator to click the link.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-m8v7-x398-pxrf?
GHSA-m8v7-x398-pxrf is a cross-site scripting vulnerability in silverstripe/framework, published on 23 May 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
Due to a lack of parameter sanitisation a carefully crafted URL could be used to inject arbitrary HTML into the CMS Edit page.
An attacker could create a URL and share it with a site administrator to perform an attack.
Which versions are affected by GHSA-m8v7-x398-pxrf?
6 open source packages ship an affected version, including silverstripe/framework.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 3.1.18 | 3.1.19 |
silverstripe/framework Packagist | From 3.1.18 | 3.1.19 |
silverstripe/framework Packagist | From 3.2.3 | 3.2.4 |
silverstripe/framework Packagist | From 3.2.3 | 3.2.4 |
silverstripe/framework Packagist | From 3.3.1 | 3.3.2 |
silverstripe/framework Packagist | From 3.3.1 | 3.3.2 |
How do I fix GHSA-m8v7-x398-pxrf?
Upgrade silverstripe/framework to a fixed version for your release line: 3.1.19, 3.2.4 or 3.3.2.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is GHSA-m8v7-x398-pxrf being exploited?
There is no known exploitation of GHSA-m8v7-x398-pxrf in the wild and no public exploit code.