Cockpit CMS Cross-Site Scripting Vulnerability in cockpit-hq/cockpit

cockpit-hq/cockpit Updated 02 Oct 2025

Summary

29/02/2024
No i
Moderate
5.5

CVE-2024-2001: Cockpit CMS Cross-Site Scripting vulnerability. Affects cockpit-hq/cockpit versions 2.7.0. No fix is published. 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

Cockpit CMS is an open-source content management system that provides a user-friendly interface for managing website content. It is widely used for its simplicity and flexibility. The vulnerability affects version 2.7.0 of Cockpit CMS. This vulnerability allows an authenticated user to upload an infected PDF file and store a malicious JavaScript payload. When the file is uploaded, the payload is executed, leading to a Cross-Site Scripting (XSS) attack.

Vulnerability Detail

The Cross-Site Scripting vulnerability in Cockpit CMS version 2.7.0 enables an authenticated user to upload a PDF file containing a malicious JavaScript payload. This payload is stored within the file and executed when the file is uploaded. As a result, an attacker can inject arbitrary code into the website, potentially compromising user data, performing unauthorized actions, or defacing the website. The vulnerability has a CVSS score of 5.5, indicating a moderate severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there is no known workaround for this vulnerability. It is crucial to apply the official fix provided by the developers by updating to the latest version of Cockpit CMS.

Conclusion

The Cross-Site Scripting vulnerability in Cockpit CMS version 2.7.0 poses a moderate risk to websites using this content management system. It allows an authenticated user to upload a PDF file containing a malicious JavaScript payload, leading to potential attacks and unauthorized access. To mitigate this vulnerability, it is crucial to update Cockpit CMS to the latest version that includes the necessary security patches. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for cockpit-hq/cockpit →

Share this vulnerability

FAQ

Cockpit CMS is an open-source content management system that provides a user-friendly interface for managing website content. It is known for its simplicity and flexibility.

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 various attacks, such as stealing sensitive information or performing unauthorized actions.

This vulnerability occurs due to a lack of proper input sanitization and validation when handling uploaded PDF files in Cockpit CMS. It allows an authenticated user to upload a PDF file containing a malicious JavaScript payload, which is then executed when the file is uploaded.

The potential consequences of this vulnerability include unauthorized access to user data, manipulation of website content, and the execution of arbitrary code on the affected website. This can lead to data breaches, compromised user accounts, and defacement of the website.

Yes, the developers of Cockpit CMS have released a fix for this vulnerability in a subsequent version. Users are advised to update their installations to the latest version, which includes the necessary security patches.

Related vulnerabilities

Recent vulnerabilities recorded for cockpit-hq/cockpit.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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