GHSA-frm9-7pm9-5rgc: Silverstripe/comments Cross-Site Scripting Vulnerability
MODERATEGHSA-frm9-7pm9-5rgc is a MODERATE (CVSS 4.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Silverstripe/comments libraries in the Packagist ecosystem. The issue involves silverstripe comments module includes version of jquery vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 3.1.1.
GHSA-frm9-7pm9-5rgc at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix GHSA-frm9-7pm9-5rgc
To remediate this vulnerability, upgrade all affected Silverstripe/comments 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/comments to 3.1.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for silverstripe/comments
How to Check if You Are Affected
To determine whether your application is affected by GHSA-frm9-7pm9-5rgc, inspect your project dependencies for Silverstripe/comments:
inspect dependencies for silverstripe/comments
Analyze the terminal output to locate any version of Silverstripe/comments in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.1.1), 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/comments, 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-frm9-7pm9-5rgc Affected Silverstripe/comments Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
silverstripe/comments
|
Packagist |
≥ 1.3.0
< 3.1.1
|
3.1.1
|
References
Frequently Asked Questions
What is GHSA-frm9-7pm9-5rgc?
Which Silverstripe/comments versions are affected?
What version fixes GHSA-frm9-7pm9-5rgc?
Is silverstripe/comments affected?
What is the CVSS score of GHSA-frm9-7pm9-5rgc?
What CWE is associated with GHSA-frm9-7pm9-5rgc?
How can I check Packagist dependencies for GHSA-frm9-7pm9-5rgc?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-frm9-7pm9-5rgc",
"modified" : "2024-05-27T18:24:02Z",
"published" : "2024-05-27T18:24:02Z",
"aliases" : [ ],
"summary" : "SilverStripe comments module includes version of jQuery vulnerable to Cross-site Scripting",
"details" : "The silverstripe/comments module, the cwp/starter-theme and the cwp/watea-theme include an outdated version of jQuery by default, which contains XSS vulnerabilities if user input is used in certain contexts. Though no known exploit has been found for these in the existing usage, user customisation to these themes could have made them exploitable.\n\nCWP 2.0.0 has been released with the fixed cwp/stater-theme and silverstripe/comments module, and SilverStripe 4.2.0 will be released with the fixed silverstripe-themes/simple theme.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "silverstripe/comments"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "1.3.0"
}, {
"fixed" : "3.1.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/comments/SS-2018-015-1.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/silverstripe/silverstripe-comments"
}, {
"type" : "WEB",
"url" : "https://www.silverstripe.org/download/security-releases/ss-2018-015"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-27T18:24:02Z",
"nvd_published_at" : null
}
}