MediumGHSA-hq4p-5mpr-jj9m
Silverstripe XSS in dev/build returnURL Parameter
Published 23 May 2024 · Updated 28 Nov 2024
Affected package
silverstripe/frameworkComposer
- Affected
- <3.1.14
- Fixed in
- 3.1.14
Update to the fixed version for your release line, for example:
composer require silverstripe/framework:^3.1.14Details
A XSS risk exists in the returnURL parameter passed to dev/build. An unvalidated url could cause the user to redirect to an unverified third party url outside of the site.
This issue is resolved in framework 3.1.14 stable release.
Is GHSA-hq4p-5mpr-jj9m 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/751d77386c3c6e354b521fa61ff142f95895cca8
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-015-1.yaml
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/software/download/security-releases/ss-2015-015
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.