MediumGHSA-88jp-9jrv-6368
Silverstripe XSS In GridField print
Published 23 May 2024 · Updated 28 Nov 2024
Affected package
silverstripe/frameworkComposer
- Affected
- >=3.1.0 <3.1.10
- Fixed in
- 3.1.10
Update to the fixed version for your release line, for example:
composer require silverstripe/framework:^3.1.10Details
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.
Is GHSA-88jp-9jrv-6368 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/cebc0d08c5cc8177c2462a963b76e5bc7827146d
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-006-1.yaml
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/software/download/security-releases/ss-2015-006
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.