GHSA-r97r-64vp-fghm Silverstripe XSS vulnerability via VirtualPage

Not scored Published

An attacker with CMS access can inject malicious HTML into VirtualPage fields, leading to cross-site scripting attacks against other users.

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-r97r-64vp-fghm?

GHSA-r97r-64vp-fghm 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 VirtualPage class.

This vulnerability can only be exploited if a user with CMS access has posted malicious or unescaped HTML into any of the textfields of a page which a VirtualPage refers to.

This has been resolved by ensuring that VirtualPage safely escapes all field content.

Which versions are affected by GHSA-r97r-64vp-fghm?

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-r97r-64vp-fghm?

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-r97r-64vp-fghm being exploited?

There is no known exploitation of GHSA-r97r-64vp-fghm in the wild and no public exploit code.

Sources

Is GHSA-r97r-64vp-fghm in your software?

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

Check your SBOMs for free