Silverstripe Framework has a Reflected Cross Site Scripting (XSS) in error message
Published 14 Jan 2025 · Updated 14 Jan 2025
Affected package
- Affected
- <5.3.8
- Fixed in
- 5.3.8
composer require silverstripe/framework:^5.3.8Details
> [!IMPORTANT] > This vulnerability only affects sites which are in the "dev" environment mode. If your production website is in "dev" mode, it has been misconfigured, and you should immediately swap it to "live" mode. > See https://docs.silverstripe.org/en/developer_guides/debugging/environment_types/ for more information.
If a website has been set to the "dev" environment mode, a URL can be provided which includes an XSS payload which will be executed in the resulting error message.
References
- https://www.silverstripe.org/download/security-releases/ss-2024-002
Reported by
Gaurav Nayak from Chaleit
Is GHSA-mqf3-qpc3-g26q 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
- Linkgithub.com/silverstripe/silverstripe-framework/security/advisories/GHSA-mqf3-qpc3-g26q
- Linkgithub.com/silverstripe/silverstripe-framework/commit/a555dad4ec73c929f6316bcb4019eb325a5b77d8
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/download/security-releases/ss-2024-002
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.