GHSA-6hh6-59j2-qrxw Silverstripe History XSS Vulnerability

Not scored Published

An attacker with CMS access can inject malicious HTML into page history, leading to XSS when compare mode is used.

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-6hh6-59j2-qrxw?

GHSA-6hh6-59j2-qrxw is a cross-site scripting vulnerability in silverstripe/cms, 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

A cross-site scripting vulnerability has been discovered in the CMS page history tab.

This vulnerability can only be exploited if a user with CMS access has posted malicious or unescaped HTML into any of the text fields on a page, and if the "compare mode" option is selected. The HTML will be embedded into the page unescaped.

This has been resolved by performing the text comparison in a HTML friendly way.

Which versions are affected by GHSA-6hh6-59j2-qrxw?

2 open source packages ship an affected version, including silverstripe/cms.

PackageAffectedFixed in
silverstripe/cms PackagistFrom 3.1.03.1.10
silverstripe/cms PackagistFrom 3.1.03.1.10

How do I fix GHSA-6hh6-59j2-qrxw?

Upgrade silverstripe/cms to 3.1.10 or later.

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-6hh6-59j2-qrxw being exploited?

There is no known exploitation of GHSA-6hh6-59j2-qrxw in the wild and no public exploit code.

Sources

Is GHSA-6hh6-59j2-qrxw in your software?

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

Check your SBOMs for free