CVE-2022-35590: ForkCMS XSS via `end_date` parameter

forkcms/forkcms Updated 02 Oct 2025

Summary

13/08/2022
Yes i
Moderate
4.8

CVE-2022-35590: ForkCMS XSS via end_date parameter. Affects forkcms/forkcms versions < 5.11.0. Fixed in 5.11.0. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ForkCMS is an open-source content management system (CMS) written in PHP. It provides a user-friendly interface for managing website content, including pages, menus, and modules. ForkCMS is widely used for building websites and web applications. However, a vulnerability has been discovered in version 5.9.3 that allows for cross-site scripting (XSS) attacks via the end_date parameter. This vulnerability can be exploited by remote attackers to inject malicious JavaScript code into the affected website, potentially leading to unauthorized access, data theft, or other malicious activities. The issue has been addressed in version 5.11.0, and users are strongly advised to update to the latest version to mitigate the risk.

Vulnerability Detail

The vulnerability in ForkCMS version 5.9.3 arises from insufficient input validation and sanitization of the end_date parameter. Attackers can exploit this by injecting malicious JavaScript code into the affected website. When a user visits a page or performs an action that triggers the vulnerable code, the injected code will be executed in the context of the user's browser, allowing the attacker to perform various malicious activities. This could include stealing sensitive information, such as login credentials or personal data, modifying the website's content, redirecting users to malicious websites, or performing actions on behalf of the user. The severity of the vulnerability is rated as MODERATE with a CVSS score of 4.8.

How To Fix

Minimum fixed version

5.11.0

This is the first release that contains the fix.

composer require forkcms/forkcms:5.11.0

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

Workaround

As a temporary workaround, users can manually sanitize and validate the end_date parameter before using it in any context that could be vulnerable to XSS attacks. This can be done by implementing proper input validation and sanitization techniques, such as using a secure coding framework or library that provides functions for escaping or filtering user input. Here is an example of how to sanitize the end_date parameter in PHP:

$end_date = htmlspecialchars($_GET['end_date'], ENT_QUOTES, 'UTF-8');

Conclusion

The XSS vulnerability in ForkCMS version 5.9.3 poses a moderate risk to websites and web applications built on this CMS. It allows attackers to inject malicious JavaScript code and potentially compromise user data and website integrity. Users are strongly advised to upgrade to version 5.11.0 or later to mitigate the risk. Regularly checking for updates and implementing secure coding practices can help protect against similar vulnerabilities in the future. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for forkcms/forkcms →

Share this vulnerability

FAQ

ForkCMS is an open-source content management system (CMS) written in PHP. It provides a user-friendly interface for managing website content.

Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.

The ForkCMS XSS vulnerability can be exploited by injecting malicious JavaScript code into the end_date parameter and triggering its execution on the affected website.

The potential consequences of the ForkCMS XSS vulnerability include unauthorized access, data theft, website defacement, redirection to malicious websites, and performing actions on behalf of the user.

To protect your ForkCMS installation from the XSS vulnerability, make sure to update to the latest version (5.11.0 or later) and implement proper input validation and sanitization techniques.

Related vulnerabilities

Recent vulnerabilities recorded for forkcms/forkcms.

How To Fix

Minimum fixed version

5.11.0

This is the first release that contains the fix.

composer require forkcms/forkcms:5.11.0

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