GitHub Advisoryadvisory · Packagist

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

MEDIUM Published 2024-07-17 Modified 2024-07-22 Official page ↗
Ecosystem
Packagist
Packages
silverstripe/framework
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weaknesses
CWE-1395, CWE-79
Reviewed
2024-07-17

Affected packages

• Packagist silverstripe/framework: < 5.2.16 → fixed in 5.2.16

Description

Impact TinyMCE v6 has a configuration value `convert_unsafe_embeds` set to `false` which allows svg files containing javascript to be used in `` or `` tags, which can be used as a vector for XSS attacks. Note that `` tags are not allowed by default. After patching the default value of `convert_unsafe_embeds` will be set to `true`. This means that `` tags will be converted to iframes instead the next time the page is saved, which may break any pages that rely upon previously saved `` 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

Related

Weakness · CWE (2)

  • CWE-1395 Dependency on Vulnerable Third-Party Component weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References