# GHSA-52cw-pvq9-9m5v: Silverstripe uses TinyMCE which allows svg files linked in object tags

- Severity: Medium (CVSS:4.0, scored by GitHub) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-07-17T16:00:48.000Z
- Modified: 2024-12-01T05:37:28.631Z
- Weaknesses: CWE-79, CWE-1395

## Description

### Impact
TinyMCE v6 has a configuration value `convert_unsafe_embeds` set to `false` which allows svg files containing javascript to be used in `<object>` or `<embed>` tags, which can be used as a vector for XSS attacks.

Note that `<embed>` tags are not allowed by default.

After patching the default value of `convert_unsafe_embeds` will be set to `true`. This means that `<object>` tags will be converted to iframes instead the next time the page is saved, which may break any pages that rely upon previously saved `<object>` tags. Developers can override this configuration if desired to revert to the original behaviour.

We reviewed the potential impact of this vulnerability within the context of Silverstripe CMS. We concluded this is a medium impact vulnerability given how TinyMCE is used by Silverstripe CMS.

### References:
- https://www.silverstripe.org/download/security-releases/ss-2024-001
- https://github.com/advisories/GHSA-5359-pvf2-pw78

(As written by GitHub Advisory Database.)

## Affected

- silverstripe/framework (Packagist): before 5.2.16

## Every score

- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-52cw-pvq9-9m5v> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2024-001.yaml> (web)
- <https://github.com/advisories/GHSA-5359-pvf2-pw78> (advisory)
- <https://github.com/silverstripe/silverstripe-framework> (package)
- <https://www.silverstripe.org/download/security-releases/ss-2024-001> (web)

## Sources

- GitHub Advisory Database: [GHSA-52cw-pvq9-9m5v](https://github.com/advisories/GHSA-52cw-pvq9-9m5v), CC-BY-4.0, modified 2024-12-01

---

Page: https://cve.day/GHSA-52cw-pvq9-9m5v · Whole record: https://cve.day/GHSA-52cw-pvq9-9m5v.json · Rebuilt by cve.day 2026-11-25T22:56:31.113Z
