Reflected XSS Vulnerability in SilverStripe Framework

silverstripe/framework Updated 02 Oct 2025

Summary

23/01/2025
LOW
Yes i
Low
Not published

GHSA-74j9-xhqr-6qv3: Reflected Cross Site Scripting (XSS) in error message. Affects silverstripe/framework versions < 5.3.8. Fixed in 5.3.8. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

SilverStripe Framework is an open-source web application framework that allows developers to build dynamic websites and applications. It is known for its flexibility, ease of use, and robust features, including a powerful content management system. However, when the framework is set to 'dev' environment mode, it becomes susceptible to reflected cross-site scripting (XSS) attacks, which can compromise the security of applications built on it.

Vulnerability Detail

The vulnerability arises when a URL containing an XSS payload is provided while the SilverStripe Framework is in 'dev' mode. This can lead to the execution of malicious scripts in the resulting error message, potentially allowing attackers to steal sensitive information or perform unauthorized actions on behalf of users. The issue is classified under CWE-79, which pertains to improper neutralization of input during web page generation, leading to XSS vulnerabilities.

How To Fix

Minimum fixed version

5.3.8

This is the first release that contains the fix.

composer require silverstripe/framework:5.3.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, you can disable the 'dev' mode in your application configuration. This can be done by setting the environment variable 'SS_ENVIRONMENT_TYPE' to 'live' or by modifying the configuration file to prevent the execution of error messages that could include user input.

Conclusion

The reflected XSS vulnerability in the SilverStripe Framework poses a significant risk when the application is in 'dev' mode. It is crucial for developers to update to the patched version to mitigate this risk and ensure the security of their applications. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.

See every vulnerability recorded for silverstripe/framework →

Share this vulnerability

FAQ

Reflected XSS is a type of attack where malicious scripts are injected into a web application via user input, and the application reflects this input back to the user without proper validation or sanitization.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your composer.lock file without needing to sign up.

The risks include unauthorized access to user accounts, data theft, and the potential for attackers to execute arbitrary scripts in the context of the user's session.

Yes, to prevent XSS vulnerabilities, always validate and sanitize user inputs, use security libraries that provide XSS protection, and keep your software dependencies updated.

If an immediate update is not possible, consider disabling 'dev' mode as a temporary measure and monitor your application closely for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for silverstripe/framework.

How To Fix

Minimum fixed version

5.3.8

This is the first release that contains the fix.

composer require silverstripe/framework:5.3.8

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback