Silverstripe XSS in TreeDropdownField and TreeMultiSelectField
Published 23 May 2024 · Updated 28 Nov 2024
Affected package
- Affected
- >=3.1.0 <3.1.10
- Fixed in
- 3.1.10
composer require silverstripe/framework:^3.1.10Details
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.
Is GHSA-r32j-mr8p-hfp8 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/framework, and gives you the command that fixes it.
References
- Linkgithub.com/silverstripe/silverstripe-framework/commit/89c14d079d3a130d6c4029af596262528ce53925
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-004-1.yaml
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/software/download/security-releases/ss-2015-004
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.