GHSA-qvrv-2x7x-78x2
Reflected XSS in SilverStripe
Quick fix
GHSA-qvrv-2x7x-78x2 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.5.2Details
SilverStripe through 4.4.x before 4.4.5 and 4.5.x before 4.5.2 allows Reflected XSS on the login form and custom forms. Silverstripe Forms allow malicious HTML or JavaScript to be inserted through non-scalar FormField attributes, which allows performing XSS (Cross-Site Scripting) on some forms built with user input (Request data). This can lead to phishing attempts to obtain a user's credentials or other sensitive user input.
Are you affected?
Enter the version of the package you're using.
Affected packages
4.5.0Fixed in: 4.5.2composer require silverstripe/framework:^4.5.24.0.0Fixed in: 4.4.5composer require silverstripe/framework:^4.4.5References
- https://nvd.nist.gov/vuln/detail/CVE-2019-19325[ADVISORY]
- https://github.com/silverstripe/silverstripe-framework/commit/49fda52b12ba59f0a04bcabf78425586a8779e89[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2019-19325.yaml[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2019-19325[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"]}'