GHSA-jqp8-v74p-g8px
Silverstripe XSS in Director::force_redirect()
Quick fix
GHSA-jqp8-v74p-g8px — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.1.12Details
A low level XSS vulnerability has been found in the Framework affecting http redirection via the Director::force_redirect method.
Attempts to redirect to a url may generate HTML which is not safely escaped, and may pose a risk of XSS in some environments.
This vulnerability is marked low as it is difficult to exploit, as any injected HTML will only be returned from the server if the Location HTTP header is also sent, meaning that any user browsing the site would not be exposed to the body of the response before their browser redirects them.
Are you affected?
Enter the version of the package you're using.
Affected packages
3.1.0Fixed in: 3.1.12composer require silverstripe/framework:^3.1.12References
- https://github.com/silverstripe/silverstripe-framework/commit/ee9bddb808df6d27db4d56bb5d522dcfe6788715[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-010-1.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/software/download/security-releases/ss-2015-010-xss-in-directorforce-redirect[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/framework"]}'