GHSA-frm9-7pm9-5rgc: Silverstripe/comments Cross-Site Scripting Vulnerability

MODERATE
CVSS 4.4
CWE-79
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-frm9-7pm9-5rgc
Severity MODERATE
CVSS v3.1 Base Score 4.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Silverstripe/comments
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

silverstripe/comments fixed: 3.1.1
Upgrade silverstripe/comments to 3.1.1
Verify Direct and Transitive Dependencies

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

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. CWP 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.

GHSA-frm9-7pm9-5rgc Affected Silverstripe/comments Versions

1 component(s)
Fixed Versions:
3.1.1
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?
GHSA-frm9-7pm9-5rgc is a security vulnerability in Silverstripe/comments involving SilverStripe comments module includes version of jQuery vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Silverstripe/comments versions are affected?
Affected versions include releases prior to 3.1.1 across affected packages: silverstripe/comments.
What version fixes GHSA-frm9-7pm9-5rgc?
Upgrading to 3.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/comments affected?
Yes, silverstripe/comments is affected in releases prior to 3.1.1. Upgrade your dependency to 3.1.1 or later.
What is the CVSS score of GHSA-frm9-7pm9-5rgc?
GHSA-frm9-7pm9-5rgc has a CVSS v3.1 base score of 4.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with GHSA-frm9-7pm9-5rgc?
GHSA-frm9-7pm9-5rgc is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for GHSA-frm9-7pm9-5rgc?
Run the dependency tree command: 'inspect dependencies for silverstripe/comments'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}