VDB
Sign up
MEDIUM4.3

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.17

Details

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

Packagist/silverstripe/framework
Introduced in: 0Fixed in: 3.1.17
Fixcomposer require silverstripe/framework:^3.1.17
Packagist/silverstripe/framework
Introduced in: 3.2.0Fixed in: 3.2.2
Fixcomposer require silverstripe/framework:^3.2.2
Packagist/silverstripe/framework
Introduced in: 3.3.0-beta1Fixed in: 3.3.0
Fixcomposer require silverstripe/framework:^3.3.0

References

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"]}'