GHSA-2hpc-mf4q-j885
Silverstripe CSRF vulnerability in GridFieldAddExistingAutocompleter
Quick fix
GHSA-2hpc-mf4q-j885 — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.1.17Details
GridField does not have sufficient CSRF protection, meaning that in some cases users with CMS access can be tricked into posting unspecified data into the CMS from external websites. Amongst other default CMS interfaces, GridField is used for management of groups, users and permissions in the CMS.
The resolution for this issue is to ensure that all gridFieldAlterAction submissions are checked for the SecurityID token during submission.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 3.1.17composer require silverstripe/framework:^3.1.173.2.0Fixed in: 3.2.2composer require silverstripe/framework:^3.2.23.3.0-beta1Fixed in: 3.3.0composer require silverstripe/framework:^3.3.0References
- https://github.com/silverstripe/silverstripe-framework/commit/013524af5069bb0cf909853f04418d9bef56d18c[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/56e92f5a32e45849cc9361c8603c31d7010c9d36[WEB]
- https://github.com/silverstripe/silverstripe-framework/commit/e2c77c5a8f13e901c51a3684210811559b592f0c[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2016-002-1.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/ss-2016-002[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:composer/silverstripe/framework"]}'