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.8Details
### 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
0Fixed in: 5.3.8composer require silverstripe/framework:^5.3.8References
- https://github.com/silverstripe/silverstripe-asset-admin/security/advisories/GHSA-7cmp-cgg8-4c82[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2024-47605[ADVISORY]
- https://github.com/silverstripe/silverstripe-framework/commit/09b5052c86932f273e0d733428c9aade70ff2a4a[WEB]
- https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/CVE-2024-47605.yaml[WEB]
- https://github.com/silverstripe/silverstripe-framework[PACKAGE]
- https://www.silverstripe.org/download/security-releases/cve-2024-47605[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"]}'