# GHSA-qp29-wcc2-vmpc: Silverstripe HtmlEditor embed url sanitisation

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-23T18:14:45.000Z
- Modified: 2024-11-28T05:41:00.784Z

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- silverstripe/framework (Packagist): from 3.0.0 before 3.2.1

## References

- <https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2015-027-1.yaml> (web)
- <https://github.com/silverstripe/silverstripe-framework> (package)
- <https://www.silverstripe.org/download/security-releases/ss-2015-027> (web)

## Sources

- GitHub Advisory Database: [GHSA-qp29-wcc2-vmpc](https://github.com/advisories/GHSA-qp29-wcc2-vmpc), CC-BY-4.0, modified 2024-11-28

---

Page: https://cve.day/GHSA-qp29-wcc2-vmpc · Whole record: https://cve.day/GHSA-qp29-wcc2-vmpc.json · Rebuilt by cve.day 2026-11-25T22:56:32.859Z
