GHSA-779c-7w4p-2c4g: Silverstripe/admin Cross-Site Scripting Vulnerability
LOWGHSA-779c-7w4p-2c4g is a LOW (CVSS 3.8) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Silverstripe/admin libraries in the Packagist ecosystem. The issue involves silverstripe admin xss vulnerability via wysiwyg editor. Remediation is available by upgrading affected packages to version 1.0.4, 1.1.1.
GHSA-779c-7w4p-2c4g at a Glance
Security Impact
CVSS: 3.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N).
How to Fix GHSA-779c-7w4p-2c4g
To remediate this vulnerability, upgrade all affected Silverstripe/admin 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/admin to 1.0.4
Upgrade silverstripe/admin to 1.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/admin
How to Check if You Are Affected
To determine whether your application is affected by GHSA-779c-7w4p-2c4g, inspect your project dependencies for Silverstripe/admin:
inspect dependencies for silverstripe/admin
Analyze the terminal output to locate any version of Silverstripe/admin in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.4), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Silverstripe/admin, 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-779c-7w4p-2c4g Affected Silverstripe/admin Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/admin
|
Packagist |
≥ 1.0.3
< 1.0.4
|
1.0.4
|
|
silverstripe/admin
|
Packagist |
≥ 1.1.0
< 1.1.1
|
1.1.1
|
References
Frequently Asked Questions
What is GHSA-779c-7w4p-2c4g?
Which Silverstripe/admin versions are affected?
What version fixes GHSA-779c-7w4p-2c4g?
Is silverstripe/admin affected?
What is the CVSS score of GHSA-779c-7w4p-2c4g?
What CWE is associated with GHSA-779c-7w4p-2c4g?
How can I check Packagist dependencies for GHSA-779c-7w4p-2c4g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-779c-7w4p-2c4g",
"modified" : "2024-05-22T18:18:18Z",
"published" : "2024-05-22T18:18:18Z",
"aliases" : [ ],
"summary" : "Silverstripe admin XSS Vulnerability via WYSIWYG editor",
"details" : "It is possible for a bad actor with access to the CMS to make use of onmouseover or onmouseout attributes in the WYSIWYG editor to embed malicious javascript.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.0.3"
}, {
"fixed" : "1.0.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/admin"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.1.0"
}, {
"fixed" : "1.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/admin/SS-2018-004-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-admin"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2018-004"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-22T18:18:18Z",
"nvd_published_at" : null
}
}