Silverstripe XSS in TreeDropdownField and TreeMultiSelectField
Impact
A cross-site scripting vulnerability has been discovered in the TreeDropdownField and TreeMultiSelectField.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 3.1.0 before 3.1.10Ecosystem versions | 3.1.10 |
Version evidence: OSV · GHSA-r32j-mr8p-hfp8
View original version evidence (22 explicit versions)
Original source 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.
References
- Patch github.com/silverstripe/silverstripe-framework/commit/89c14d079d3a130d6c4029af596262528ce53925
- Security advisory github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-004-1.yaml
- Source reference github.com/silverstripe/silverstripe-framework
- Security advisory www.silverstripe.org/software/download/security-releases/ss-2015-004