MediumGHSA-mpqj-f4v3-334h

Silverstripe Cross-site scripting vulnerability in VersionedRequestFilter

Published 23 May 2024 · Updated 28 Nov 2024

Affected packages

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

Details

A cross-site scripting vulnerability in VersionedRequestFilter has been found.

If an incoming user request should not be able to access the requested stage, an error message is created for display on the CMS login page that they are redirected to. In this error message, the URL of the requested page is interpolated into the error message without being escaped; hence, arbitrary HTML can be injected into the CMS login page.

Is GHSA-mpqj-f4v3-334h 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.