GHSA-88jp-9jrv-6368 Silverstripe XSS In GridField print
An attacker with CMS access can inject malicious HTML into GridField data, leading to XSS when the print view is used.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-88jp-9jrv-6368?
GHSA-88jp-9jrv-6368 is a cross-site scripting vulnerability in silverstripe/framework, published on 23 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A cross-site scripting vulnerability has been discovered in the print view of GridField.
This vulnerability can only be exploited if a user with CMS access has posted malicious or unescaped HTML into any field of an object in a GridField, and the print feature is used.
This has been resolved by ensuring that the print feature safely escapes all fields.
Which versions are affected by GHSA-88jp-9jrv-6368?
2 open source packages ship an affected version, including silverstripe/framework.
| Package | Affected | Fixed in |
|---|---|---|
silverstripe/framework Packagist | From 3.1.0 | 3.1.10 |
silverstripe/framework Packagist | From 3.1.0 | 3.1.10 |
How do I fix GHSA-88jp-9jrv-6368?
Upgrade silverstripe/framework to 3.1.10 or later.
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-88jp-9jrv-6368 being exploited?
There is no known exploitation of GHSA-88jp-9jrv-6368 in the wild and no public exploit code.