Silverstripe Framework has a Reflected Cross Site Scripting (XSS) in error message
Impact
> [!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.
Source excerpt · OSV[!IMPORTANT] This vulnerability only affects sites which are in the "dev" environment mode.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 5.3.8Ecosystem versions | 5.3.8 |
Version evidence: OSV · GHSA-mqf3-qpc3-g26q
View original version evidence (442 explicit versions)
Original source description
[!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
Reported by
Gaurav Nayak from Chaleit
References
- Security advisory github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-mqf3-qpc3-g26q
- Patch github.com/silverstripe/silverstripe-framework/commit/a555dad4ec73c929f6316bcb4019eb325a5b77d8
- Source reference github.com/silverstripe/silverstripe-framework
- Security advisory www.silverstripe.org/download/security-releases/ss-2024-002