MediumGHSA-jx34-gqqq-r6gmCVE-2022-25238
Stored XSS via HTML fields in SilverStripe Framework
Published 29 Jun 2022 · Updated 21 Feb 2024
Affected package
silverstripe/frameworkComposer
- Affected
- >=4.0.0 <4.10.9
- Fixed in
- 4.10.9
Update to the fixed version for your release line, for example:
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.
Is GHSA-jx34-gqqq-r6gm in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected silverstripe/framework, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2022-25238
- Linkdocs.silverstripe.org/en/4/changelogs/4.10.1
- Linkforum.silverstripe.org/c/releases
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2022-25238.yaml
- Linkwww.silverstripe.org/blog/tag/release
- Linkwww.silverstripe.org/download/security-releases
- Linkwww.silverstripe.org/download/security-releases/cve-2022-25238
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.