HighGHSA-3mm9-2p44-rw39

Silverstripe SiteTree Creation Permission Vulnerability

Published 22 May 2024 · Updated 7 Dec 2024

Affected packages

Affected
>=3.0.0 <3.0.12
Fixed in
3.0.12
Update to the fixed version for your release line, for example:composer require silverstripe/cms:^3.0.12
Affected
>=3.1.0 <3.1.11
Fixed in
3.1.11
Update to the fixed version for your release line, for example:composer require silverstripe/cms:^3.1.11

Details

A vulnerability exists in the permission validation for SiteTree object creation. By default user permissions are not validated by the SiteTree::canCreate method, unless overridden by user code or via the configuration system.

This vulnerability will allow users, or unauthenticated guests, to create new SiteTree objects in the database. This vulnerability is present when such users are given CMS access via other means, or if there is another mechanism (such as RestfulServer module) which allows model editing and relies on model-level permission checks.

This vulnerability is restricted to the creation of draft or live pages, and does not allow users to edit, publish, or unpublish existing pages.

All users should upgrade as soon as possible.

Is GHSA-3mm9-2p44-rw39 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/cms, and gives you the command that fixes it.

References

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