CVE-2022-28803 Stored XSS in link tags added via XHR in SilverStripe Framework

Medium 5.4 Published Updated

Stored XSS in SilverStripe Framework allows attackers to inject malicious scripts via XHR link tags, 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 CVE-2022-28803?

CVE-2022-28803 is a medium-severity cross-site scripting vulnerability in Silverstripe Silverstripe, published on 29 Jun 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

In SilverStripe Framework through 2022-04-07, Stored XSS can occur in javascript link tags added via XMLHttpRequest (XHR).

Weakness: CWE-79

Which versions are affected by CVE-2022-28803?

3 open source packages ship an affected version, including silverstripe/framework and silverstripe. It affects 1 product.

PackageAffectedFixed in
silverstripe/framework PackagistFrom 4.0.04.10.9
silverstripe/framework PackagistFrom 4.0.04.10.9
silverstripe BitnamiAll versions4.10.9

Products include Silverstripe Silverstripe.

How do I fix CVE-2022-28803?

Upgrade silverstripe/framework to 4.10.9 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 CVE-2022-28803 being exploited?

There is no known exploitation of CVE-2022-28803 in the wild and no public exploit code.

All Silverstripe Silverstripe vulnerabilities

Sources

Also known as BIT-silverstripe-2022-28803, GHSA-rppc-655v-7j3c.

Is CVE-2022-28803 in your software?

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

Check your SBOMs for free