VDB
Sign up
MEDIUM5.4

GHSA-7cmp-cgg8-4c82

Silverstripe Framework has a XSS via insert media remote file oembed

Quick fix

GHSA-7cmp-cgg8-4c82 — silverstripe/framework: upgrade to the fixed version with the command below.

composer require silverstripe/framework:^5.3.8

Details

### Impact

When using the "insert media" functionality, the linked oEmbed JSON includes an HTML attribute which will replace the embed shortcode. The HTML is not sanitized before replacing the shortcode, allowing a script payload to be executed on both the CMS and the front-end of the website.

## References

- https://www.silverstripe.org/download/security-releases/cve-2024-47605

## Reported by

James Nicoll from [Fujitsu Cyber Security Services](https://www.fujitsu.com/nz/services/security/)

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/silverstripe/framework
Introduced in: 0Fixed in: 5.3.8
Fixcomposer require silverstripe/framework:^5.3.8

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