MEDIUM6.1
GHSA-hhvj-mcrx-3vcf
silverstripe/framework has Cross-site Scripting vulnerability in page name
Quick fix
GHSA-hhvj-mcrx-3vcf — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.4.4Details
silverstripe/framework is vulnerable to XSS in Page name where the payload `"><svg/onload=alert(/xss/)>` will trigger an XSS alert.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
3.4.0-rc1Fixed in: 3.4.4Fix
composer require silverstripe/framework:^3.4.4Packagist/silverstripe/framework
Introduced in:
3.5.0-rc1Fixed in: 3.5.2Fix
composer require silverstripe/framework:^3.5.2References
- https://github.com/silverstripe/silverstripe-framework/commit/9574d627f95aca7ae0fcefcae2bf56215777e190[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2017-001-1.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/ss-2017-001[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"]}'