MediumGHSA-vvxf-r4vm-2vm6CVE-2022-38462

Reflected XSS in querystring parameters

Published 21 Nov 2022 · Updated 29 Apr 2025

Affected package

Affected
>=4.0.0 <4.11.13
Fixed in
4.11.13
Update to the fixed version for your release line, for example:composer require silverstripe/framework:^4.11.13

Details

An attacker could inject a XSS payload in a Silverstripe CMS response by carefully crafting a return URL on a /dev/build or /Security/login request.

To exploit this vulnerability, an attacker would need to convince a user to follow a link with a malicious payload.

This will only affect projects configured to output PHP warnings to the browser. By default, Silverstripe CMS will only output PHP warnings if your SS_ENVIRONMENT_TYPE environment variable is set to dev. Production sites should always set SS_ENVIRONMENT_TYPE to live.

Is GHSA-vvxf-r4vm-2vm6 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

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.