VDB
Sign up
MEDIUM5.5

GHSA-2jvj-mhf2-g99w

SilverStripe CSV Excel Macro Injection

Quick fix

GHSA-2jvj-mhf2-g99w — silverstripe/framework: upgrade to the fixed version with the command below.

composer require silverstripe/framework:^3.5.6

Details

In the CSV export feature of SilverStripe before 3.5.6, 3.6.x before 3.6.3, and 4.x before 4.0.1, it's possible for the output to contain macros and scripts, which may be executed if imported without sanitization into common software (including Microsoft Excel). For example, the CSV data may contain untrusted user input from the "First Name" field of a user's /myprofile page.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/silverstripe/framework
Introduced in: 0Fixed in: 3.5.6
Fixcomposer require silverstripe/framework:^3.5.6
Packagist/silverstripe/framework
Introduced in: 3.6.0Fixed in: 3.6.3
Fixcomposer require silverstripe/framework:^3.6.3
Packagist/silverstripe/framework
Introduced in: 4.0.0Fixed in: 4.0.1
Fixcomposer require silverstripe/framework:^4.0.1

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