MediumGHSA-jh3w-6jp2-vqqmCVE-2023-22728

Missing permission check of canView in GridFieldPrintButton

Published 26 Apr 2023 · Updated 16 Feb 2024

Affected package

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

Details

The GridField print view incorrectly validates the permission of DataObjects potentially allowing a content author to view records they are not authorised to access.

Upgrade to silverstripe/framework 4.12.5 or above to address the issue.

Reported by Stephan Bauer from relaxt Webdienstleistungsagentur GmbH

Is GHSA-jh3w-6jp2-vqqm 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.