CVE-2012-4968: Silverstripe XSS Vulnerabilities

silverstripe/framework Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2012-4968: Silverstripe XSS Vulnerabilities. Affects silverstripe/framework across 2 version ranges.

>= 2.3, < 2.3.13 >= 2.4, < 2.4.7

Fixed in 2.3.13 or 2.4.7, 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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

SilverStripe is an open-source content management system (CMS) and framework written in PHP. It provides a flexible and powerful platform for building websites and web applications. The SilverStripe framework, specifically versions 2.3.x before 2.3.13 and 2.4.x before 2.4.7, is susceptible to multiple cross-site scripting (XSS) vulnerabilities. These vulnerabilities allow remote attackers to inject arbitrary web script or HTML into various template methods, potentially leading to unauthorized access, data theft, or other malicious activities.

Vulnerability Detail

The XSS vulnerabilities in SilverStripe stem from improper input sanitization in several template methods. Attackers can exploit these vulnerabilities by crafting malicious strings and injecting them into the affected template methods. The impacted template methods include AbsoluteLinks, BigSummary, ContextSummary, EscapeXML, FirstParagraph, FirstSentence, Initial, LimitCharacters, LimitSentences, LimitWordCount, LimitWordCountXML, Lower, LowerCase, NoHTML, Summary, Upper, UpperCase, and URL. These methods accept user-supplied input and fail to properly sanitize it, allowing the injection of malicious code. The vectors for exploitation differ from CVE-2012-0976, another related vulnerability.

How To Fix

Fixed versions by release line

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

  • >= 2.3, < 2.3.13 2.3.13
    composer require silverstripe/framework:2.3.13
  • >= 2.4, < 2.4.7 2.4.7
    composer require silverstripe/framework:2.4.7

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

Workaround

There is no specific workaround provided for this vulnerability. However, as a general best practice, it is recommended to validate and sanitize all user-supplied input before using it in template methods or any other context where XSS vulnerabilities may arise. Implementing proper input validation and output encoding can help mitigate the risk of XSS attacks.

Conclusion

The XSS vulnerabilities in SilverStripe versions 2.3.x and 2.4.x can allow remote attackers to inject malicious scripts or HTML into web pages. To mitigate this risk, it is essential to upgrade to the fixed versions (2.3.13 or later for 2.3.x and 2.4.7 or later for 2.4.x). Additionally, implementing proper input validation and output encoding practices can help prevent XSS attacks. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for silverstripe/framework →

Share this vulnerability

FAQ

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. These scripts can be used to steal sensitive information, perform unauthorized actions, or deface websites.

The SilverStripe XSS vulnerabilities can be exploited by crafting malicious strings and injecting them into the affected template methods. Attackers can use various vectors, such as user input fields or crafted URLs, to inject the malicious code.

The potential consequences of the SilverStripe XSS vulnerabilities include unauthorized access to sensitive information, data theft, session hijacking, defacement of websites, and the execution of arbitrary code on the victim's browser.

There is no specific information available regarding known instances of these vulnerabilities being exploited in the wild. However, it is always recommended to apply security patches and updates promptly to mitigate the risk of exploitation.

To ensure the security of your SilverStripe-based applications, it is crucial to keep the framework and all associated modules up to date. Regularly check for security advisories and apply patches promptly. Implement secure coding practices, such as input validation and output encoding, to mitigate the risk of common vulnerabilities like XSS.

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.

  • >= 2.3, < 2.3.13 2.3.13
    composer require silverstripe/framework:2.3.13
  • >= 2.4, < 2.4.7 2.4.7
    composer require silverstripe/framework:2.4.7

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