GHSA-779c-7w4p-2c4g Silverstripe admin XSS Vulnerability via WYSIWYG editor

Not scored Published

Authenticated CMS users can inject malicious JavaScript via WYSIWYG editor attributes, potentially leading to session hijacking or code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is GHSA-779c-7w4p-2c4g?

GHSA-779c-7w4p-2c4g is a cross-site scripting vulnerability in silverstripe/admin, published on 22 May 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Which versions are affected by GHSA-779c-7w4p-2c4g?

4 open source packages ship an affected version, including silverstripe/admin.

PackageAffectedFixed in
silverstripe/admin PackagistFrom 1.0.31.0.4
silverstripe/admin PackagistFrom 1.0.31.0.4
silverstripe/admin PackagistFrom 1.1.01.1.1
silverstripe/admin PackagistFrom 1.1.01.1.1

How do I fix GHSA-779c-7w4p-2c4g?

Upgrade silverstripe/admin to a fixed version for your release line: 1.0.4 or 1.1.1.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is GHSA-779c-7w4p-2c4g being exploited?

There is no known exploitation of GHSA-779c-7w4p-2c4g in the wild and no public exploit code.

Sources

Is GHSA-779c-7w4p-2c4g in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free