CVE-2012-1296: Elefant CMS Multiple XSS Vulnerabilities

elefant/cms Updated 02 Oct 2025

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2012-1296: Elefant CMS Multiple XSS Vulnerabilities. Affects elefant/cms across 2 version ranges.

>= 1.0, < 1.0.2-Beta >= 1.1, < 1.1.5-Beta

Fixed in 1.0.2-Beta or 1.1.5-Beta, 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

Elefant CMS is an open-source content management system that allows users to create and manage websites. It provides various features such as a template engine, user management, and a flexible content editor. However, versions 1.0.x before 1.0.2-Beta and 1.1.x before 1.1.5-Beta of Elefant CMS are vulnerable to multiple cross-site scripting (XSS) attacks. These vulnerabilities exist in the 'apps/admin/handlers/preview.php' file and can be exploited by remote attackers to inject arbitrary web script or HTML into the application.

Vulnerability Detail

The XSS vulnerabilities in Elefant CMS allow attackers to inject malicious code into the application, which can then be executed by unsuspecting users. The vulnerabilities specifically exist in the 'title' and 'body' parameters of the 'admin/preview' endpoint. By crafting specially crafted input, an attacker can bypass input validation and insert arbitrary script or HTML code. When this code is rendered by the application, it can lead to various consequences, including session hijacking, defacement of the website, or stealing sensitive information from users.

How To Fix

Fixed versions by release line

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

  • >= 1.0, < 1.0.2-Beta 1.0.2-Beta
    composer require elefant/cms:1.0.2-Beta
  • >= 1.1, < 1.1.5-Beta 1.1.5-Beta
    composer require elefant/cms:1.1.5-Beta

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

Workaround

As a temporary workaround, users can implement input validation and sanitization measures to mitigate the risk of XSS attacks. This can involve using security libraries or frameworks that provide built-in protection against XSS, such as HTMLPurifier. Additionally, implementing a Content Security Policy (CSP) can help mitigate the impact of XSS attacks by restricting the execution of injected scripts.

Conclusion

Elefant CMS versions 1.0.x before 1.0.2-Beta and 1.1.x before 1.1.5-Beta are vulnerable to multiple XSS attacks. These vulnerabilities can be exploited by injecting malicious code into the 'title' or 'body' parameters of the 'admin/preview' endpoint. To mitigate the risk, users should upgrade to the latest patched versions and implement input validation and sanitization measures. For further assistance or support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for elefant/cms →

Share this vulnerability

FAQ

Elefant CMS is an open-source content management system that allows users to create and manage websites.

Versions 1.0.x before 1.0.2-Beta and 1.1.x before 1.1.5-Beta of Elefant CMS are affected.

Attackers can exploit these vulnerabilities by injecting malicious script or HTML code into the 'title' or 'body' parameters of the 'admin/preview' endpoint.

The consequences of these vulnerabilities can include session hijacking, website defacement, and theft of sensitive user information.

To protect your Elefant CMS installation, it is recommended to upgrade to the patched versions (1.0.2-Beta or 1.1.5-Beta) and implement input validation and sanitization measures.

Related vulnerabilities

Recent vulnerabilities recorded for elefant/cms.

How To Fix

Fixed versions by release line

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

  • >= 1.0, < 1.0.2-Beta 1.0.2-Beta
    composer require elefant/cms:1.0.2-Beta
  • >= 1.1, < 1.1.5-Beta 1.1.5-Beta
    composer require elefant/cms:1.1.5-Beta

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