GHSA-52cw-pvq9-9m5v: Silverstripe/framework Silverstripe Uses TinyMCE Which Allows Vulnerability
MODERATEGHSA-52cw-pvq9-9m5v is a MODERATE (CVSS 5.4) silverstripe uses tinymce which allows vulnerability (CWE-1395: Dependency on Vulnerable Third-Party Component) affecting Silverstripe/framework libraries in the Packagist ecosystem. The issue involves silverstripe uses tinymce which allows svg files linked in object tags. Remediation is available by upgrading affected packages to version 5.2.16.
GHSA-52cw-pvq9-9m5v at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix GHSA-52cw-pvq9-9m5v
To remediate this vulnerability, upgrade all affected Silverstripe/framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade silverstripe/framework to 5.2.16
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/framework
How to Check if You Are Affected
To determine whether your application is affected by GHSA-52cw-pvq9-9m5v, inspect your project dependencies for Silverstripe/framework:
inspect dependencies for silverstripe/framework
Analyze the terminal output to locate any version of Silverstripe/framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.2.16), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1395: Dependency on Vulnerable Third-Party Component, where the product has a dependency on a third-party component that contains one or more known vulnerabilities. In Silverstripe/framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-52cw-pvq9-9m5v Affected Silverstripe/framework Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/framework
|
Packagist |
< 5.2.16
|
5.2.16
|
References
Frequently Asked Questions
What is GHSA-52cw-pvq9-9m5v?
Which Silverstripe/framework versions are affected?
What version fixes GHSA-52cw-pvq9-9m5v?
Is silverstripe/framework affected?
What is the CVSS score of GHSA-52cw-pvq9-9m5v?
What CWE is associated with GHSA-52cw-pvq9-9m5v?
How can I check Packagist dependencies for GHSA-52cw-pvq9-9m5v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-52cw-pvq9-9m5v",
"modified" : "2024-07-22T16:54:34Z",
"published" : "2024-07-17T16:00:48Z",
"aliases" : [ ],
"summary" : "Silverstripe uses TinyMCE which allows svg files linked in object tags",
"details" : "### Impact\nTinyMCE 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.\n\nNote that `<embed>` tags are not allowed by default.\n\nAfter 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.\n\nWe 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.\n\n### References:\n- https://www.silverstripe.org/download/security-releases/ss-2024-001\n- https://github.com/advisories/GHSA-5359-pvf2-pw78\n\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/framework"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.2.16"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/silverstripe/silverstripe-framework/security/advisories/GHSA-52cw-pvq9-9m5v"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/framework/SS-2024-001.yaml"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-5359-pvf2-pw78"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-framework"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2024-001"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1395", "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-17T16:00:48Z",
"nvd_published_at" : null
}
}