GHSA-779c-7w4p-2c4g: Silverstripe/admin Cross-Site Scripting Vulnerability

LOW
CVSS 3.8
CWE-79
Published
Advisory Summary

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

CVE Identifier N/A
GHSA Identifier GHSA-779c-7w4p-2c4g
Severity LOW
CVSS v3.1 Base Score 3.8
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Silverstripe/admin
Package Ecosystem Packagist
Published Date
Last Updated

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

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

silverstripe/admin fixed: 1.0.4
Upgrade silverstripe/admin to 1.0.4
silverstripe/admin fixed: 1.1.1
Upgrade silverstripe/admin to 1.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/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

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.

GHSA-779c-7w4p-2c4g Affected Silverstripe/admin Versions

2 component(s)
Fixed Versions:
1.0.41.1.1
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?
GHSA-779c-7w4p-2c4g is a security vulnerability in Silverstripe/admin involving Silverstripe admin XSS Vulnerability via WYSIWYG editor under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Silverstripe/admin versions are affected?
Affected versions include releases prior to 1.0.4, 1.1.1 across affected packages: silverstripe/admin.
What version fixes GHSA-779c-7w4p-2c4g?
Upgrading to 1.0.4, 1.1.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/admin affected?
Yes, silverstripe/admin is affected in releases prior to 1.0.4, 1.1.1. Upgrade your dependency to 1.0.4, 1.1.1 or later.
What is the CVSS score of GHSA-779c-7w4p-2c4g?
GHSA-779c-7w4p-2c4g has a CVSS v3.1 base score of 3.8 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with GHSA-779c-7w4p-2c4g?
GHSA-779c-7w4p-2c4g 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-779c-7w4p-2c4g?
Run the dependency tree command: 'inspect dependencies for silverstripe/admin'. 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-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
  }
}