GHSA-74j9-xhqr-6qv3 Reflected Cross Site Scripting (XSS) in error message

Not scored Published

Attackers can execute arbitrary scripts in victim browsers via reflected XSS in error messages when the application is in development mode.

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

What is GHSA-74j9-xhqr-6qv3?

GHSA-74j9-xhqr-6qv3 is a cross-site scripting vulnerability in silverstripe/framework, published on 23 Jan 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

If a website has been set to the "dev" environment mode, a URL can be provided which includes an XSS payload which will be executed in the resulting error message.

Which versions are affected by GHSA-74j9-xhqr-6qv3?

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

PackageAffectedFixed in
silverstripe/framework PackagistAll versions5.3.8
silverstripe/framework PackagistAll versions5.3.8

How do I fix GHSA-74j9-xhqr-6qv3?

Upgrade silverstripe/framework to 5.3.8 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-74j9-xhqr-6qv3 being exploited?

There is no known exploitation of GHSA-74j9-xhqr-6qv3 in the wild and no public exploit code.

Sources

Is GHSA-74j9-xhqr-6qv3 in your software?

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

Check your SBOMs for free