GHSA-34q6-xqxh-gq39
Silverstripe XSS In rewritten hash links
Quick fix
GHSA-34q6-xqxh-gq39 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.0.13Details
A high level XSS vulnerability has been discovered in the SilverStripe framework which causes links containing hash anchors (E.g. href="#anchor") to be rewritten in an unsafe way.
The rewriteHashlinks option on SSViewer will rewrite these to contain the current url, although without adequate escaping, meaning that HTML could be injected via injecting unsafe values to any page via the querystring.
Due to the nature of this issue it is likely that a large number of SilverStripe sites are affected.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 3.0.13composer require silverstripe/framework:^3.0.133.1.0Fixed in: 3.1.12composer require silverstripe/framework:^3.1.12References
- https://github.com/silverstripe/silverstripe-framework/commit/604c32871202064a4aa12c3b3fd58140231685e5[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/bdef4fc7a548c7c243ff86f2db7c16f301a6f120[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-009-1.yaml[WEB]
- https://www.silverstripe.org/software/download/security-releases/ss-2015-009-xss-in-rewritten-hash-links[WEB]
- silverstripe/silverstripe-framework[PACKAGE]
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"]}'