GHSA-mqf5-275h-gf6r Silverstripe framework is vulnerable to XSS in install.php

Not scored Published

An attacker can inject malicious scripts via unescaped parameters in the Silverstripe installation form, potentially compromising the site.

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-mqf5-275h-gf6r?

GHSA-mqf5-275h-gf6r is a cross-site scripting vulnerability in silverstripe/framework, published on 23 May 2024. 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

During installation, certain parameters (admin_username and admin_password) are not escaped in the setup form.

This issue is resolved in 3.1.14 stable, although existing users are advised to remove this file prior to deploying to a production server.

Which versions are affected by GHSA-mqf5-275h-gf6r?

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

PackageAffectedFixed in
silverstripe/framework PackagistFrom 3.1.03.1.14
silverstripe/framework PackagistFrom 3.1.03.1.14

How do I fix GHSA-mqf5-275h-gf6r?

Upgrade silverstripe/framework to 3.1.14 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-mqf5-275h-gf6r being exploited?

There is no known exploitation of GHSA-mqf5-275h-gf6r in the wild and no public exploit code.

Sources

Is GHSA-mqf5-275h-gf6r in your software?

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

Check your SBOMs for free