MediumGHSA-j982-5jv7-v43r

Silverstripe Form field validation message XSS vulnerability

Published 23 May 2024 · Updated 28 Nov 2024

Affected packages

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

Details

A high level XSS risk has been identified in the encoding of validation messages in certain FormField classes.

Certain fields such as the NumericField and DropdownField have been identified, but any form field which presents any invalid content as a part of its validation response will be at risk.

Is GHSA-j982-5jv7-v43r 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.