GHSA-r32j-mr8p-hfp8 Silverstripe XSS in TreeDropdownField and TreeMultiSelectField
An attacker with CMS access can inject malicious HTML into data sources, leading to cross-site scripting attacks against other users.
- 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-r32j-mr8p-hfp8?
GHSA-r32j-mr8p-hfp8 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 TreeDropdownField and TreeMultiSelectField.
This vulnerability can only be exploited if a user with CMS access has posted malicious or unescaped HTML into any of the dataobjects used as a data source for either of these fields.
This has been resolved by ensuring that all dataobjects used as a data source have their content safely encoded.
Which versions are affected by GHSA-r32j-mr8p-hfp8?
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-r32j-mr8p-hfp8?
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-r32j-mr8p-hfp8 being exploited?
There is no known exploitation of GHSA-r32j-mr8p-hfp8 in the wild and no public exploit code.