MEDIUM5.4
GHSA-jx34-gqqq-r6gm
Stored XSS via HTML fields in SilverStripe Framework
Quick fix
GHSA-jx34-gqqq-r6gm — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^4.10.9Details
SilverStripe Framework through 4.10.8 allows XSS, inside of script tags that can can be added to website content via XHR by an authenticated CMS user if the cwp-core module is not installed on the sanitise_server_side contig is not set to true in project code.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/silverstripe/framework
Introduced in:
4.0.0Fixed in: 4.10.9Fix
composer require silverstripe/framework:^4.10.9References
- https://nvd.nist.gov/vuln/detail/CVE-2022-25238[ADVISORY]
- https://docs.silverstripe.org/en/4/changelogs/4.10.1[WEB]
- https://forum.silverstripe.org/c/releases[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2022-25238.yaml[WEB]
- https://www.silverstripe.org/blog/tag/release[WEB]
- https://www.silverstripe.org/download/security-releases[WEB]
- https://www.silverstripe.org/download/security-releases/cve-2022-25238[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"]}'