Cross-site Scripting Vulnerability in silverstripe/framework

silverstripe/framework Updated 02 Oct 2025

Summary

27/05/2024
MODERATE
Yes i
Moderate
6.1

GHSA-hhvj-mcrx-3vcf: silverstripe/framework has Cross-site Scripting vulnerability in page name. Affects silverstripe/framework across 2 version ranges.

>= 3.4.0-rc1, < 3.4.4 >= 3.5.0-rc1, < 3.5.2

Fixed in 3.4.4 or 3.5.2, depending on the release line you run. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

silverstripe/framework is a PHP framework used for building websites and web applications. It provides a range of features and functionalities to developers, including content management, database management, and user authentication. However, the framework is vulnerable to a Cross-site Scripting (XSS) attack in the page name functionality.

Vulnerability Detail

The XSS vulnerability in silverstripe/framework allows an attacker to inject malicious code into the page name, which is not properly sanitized. This can lead to the execution of arbitrary JavaScript code in the context of the victim's browser. An attacker can exploit this vulnerability by crafting a payload, such as "><svg/onload=alert('xss')>, which will trigger an XSS alert when the affected page is rendered.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.4.0-rc1, < 3.4.4 3.4.4
    composer require silverstripe/framework:3.4.4
  • >= 3.5.0-rc1, < 3.5.2 3.5.2
    composer require silverstripe/framework:3.5.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

If upgrading to a fixed version is not immediately possible, developers can implement input validation and output encoding to prevent the execution of malicious scripts. This can be achieved by using appropriate sanitization functions and escaping user input before displaying it on web pages.

Conclusion

The Cross-site Scripting vulnerability in silverstripe/framework can be mitigated by upgrading to a fixed version or implementing input validation and output encoding. It is crucial for developers to stay updated with the latest security patches and best practices to ensure the security of their applications. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for silverstripe/framework →

Share this vulnerability

FAQ

silverstripe/framework is a PHP framework used for building websites and web applications. It provides developers with a range of features and functionalities to simplify the development process.

Cross-site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code in the victim's browser.

The XSS vulnerability in silverstripe/framework occurs when the page name functionality does not properly sanitize user input. This allows an attacker to inject malicious scripts into the page name, which are executed when the page is rendered.

The XSS vulnerability in silverstripe/framework can allow an attacker to steal sensitive information, such as login credentials, or perform actions on behalf of the victim, leading to unauthorized access or data manipulation.

To protect your application from this vulnerability, it is recommended to upgrade to a fixed version of silverstripe/framework. Additionally, implementing input validation and output encoding can help prevent the execution of malicious scripts.

Related vulnerabilities

Recent vulnerabilities recorded for silverstripe/framework.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 3.4.0-rc1, < 3.4.4 3.4.4
    composer require silverstripe/framework:3.4.4
  • >= 3.5.0-rc1, < 3.5.2 3.5.2
    composer require silverstripe/framework:3.5.2

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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