GHSA-qp29-wcc2-vmpc
Silverstripe HtmlEditor embed url sanitisation
Quick fix
GHSA-qp29-wcc2-vmpc — silverstripe/framework: upgrade to the fixed version with the command below.
composer require silverstripe/framework:^3.2.1Details
"Add from URL" doesn't clearly sanitise URL server side
HtmlEditorField_Toolbar has an action HtmlEditorField_Toolbar#viewfile, which gets called by the CMS when adding a media "from a URL" (i.e. via oembed).
This action gets the URL to add in the GET parameter FileURL. However it doesn't do any URL sanitising server side. The current logic will pass this through to Oembed, which will probably reject most dangerous URLs, but it's possible future changes would break this.
Are you affected?
Enter the version of the package you're using.
Affected packages
3.0.0Fixed in: 3.2.1composer require silverstripe/framework:^3.2.1References
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"]}'