MediumGHSA-jh3w-6jp2-vqqmCVE-2023-22728
Missing permission check of canView in GridFieldPrintButton
Published 26 Apr 2023 · Updated 16 Feb 2024
Affected package
silverstripe/frameworkComposer
- 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.5Details
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
- Linkgithub.com/silverstripe/silverstripe-framework/security/advisories/GHSA-jh3w-6jp2-vqqm
- Advisorynvd.nist.gov/vuln/detail/CVE-2023-22728
- Linkgithub.com/silverstripe/silverstripe-framework/commit/fd5d8217e83768d7bf841e94b2d4d82642d5bc58
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2023-22728.yaml
- Packagegithub.com/silverstripe/silverstripe-framework
- Linkwww.silverstripe.org/download/security-releases/cve-2023-22728
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.