CVE-2022-38724 Silverstripe XSS in shortcodes

Medium 5.4 Published Updated

Cross-site scripting vulnerability in Silverstripe CMS allows attackers to inject malicious scripts into web pages viewed by 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 CVE-2022-38724?

CVE-2022-38724 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Nov 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

Silverstripe silverstripe/framework through 4.11.0, silverstripe/assets through 1.11.0, and silverstripe/asset-admin through 1.11.0 allow XSS.

Weakness: CWE-79

Which versions are affected by CVE-2022-38724?

4 open source packages ship an affected version, including silverstripe/assets and silverstripe/framework. It affects 3 products.

PackageAffectedFixed in
silverstripe/assets PackagistFrom 1.0.01.11.1
silverstripe/assets PackagistFrom 1.0.01.11.1
silverstripe/framework PackagistFrom 4.0.04.11.13
silverstripe/framework PackagistFrom 4.0.04.11.13

Products include Silverstripe Asset Admin, Silverstripe Assets, Silverstripe Framework.

How do I fix CVE-2022-38724?

Upgrade silverstripe/assets to 1.11.1 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-38724 being exploited?

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

Sources

Also known as GHSA-9cx2-hj6m-fv58.

Is CVE-2022-38724 in your software?

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

Check your SBOMs for free