CVE-2021-20683: Cross-site Scripting (XSS) in baserCMS

baserproject/basercms Updated 02 Oct 2025

Summary

08/06/2021
Yes i
Moderate
5.4

CVE-2021-20683: Cross-site Scripting (XSS) in baserCMS. Affects baserproject/basercms versions < 4.4.5. Fixed in 4.4.5. 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

baserCMS is an open-source content management system (CMS) developed by baserProject. It provides a platform for creating and managing websites, blogs, and online applications. The CMS offers various features such as user management, content editing, template customization, and plugin support. However, versions prior to 4.4.5 are vulnerable to a Cross-site Scripting (XSS) attack.

Vulnerability Detail

The vulnerability in baserCMS versions prior to 4.4.5 arises from improper neutralization of JavaScript input in the blog article editing function. Remote authenticated attackers can exploit this vulnerability to inject arbitrary scripts into the application via unspecified vectors. This can lead to the execution of malicious code in the context of the victim's browser, potentially compromising user data, session information, or performing unauthorized actions.

How To Fix

Minimum fixed version

4.4.5

This is the first release that contains the fix.

composer require baserproject/basercms:4.4.5

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

Workaround

As a temporary workaround, users can implement input validation and output encoding techniques to mitigate the risk of XSS attacks. This involves sanitizing user input and encoding output to prevent the execution of malicious scripts. Here is an example of input validation using PHP:

$input = $_POST['input'];

if (!empty($input)) {
    // Perform input validation
    $validatedInput = htmlspecialchars($input, ENT_QUOTES, 'UTF-8');
    // Use the validated input
    // ...
}

It is important to note that workarounds may not provide complete protection and should be considered temporary measures until the application is upgraded.

Conclusion

The Cross-site Scripting (XSS) vulnerability in baserCMS versions prior to 4.4.5 can be exploited by remote authenticated attackers to inject arbitrary scripts into the application. Upgrading to the latest version of baserCMS is the recommended solution to address this vulnerability. In the meantime, implementing input validation and output encoding techniques can serve as temporary workarounds. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for baserproject/basercms →

Share this vulnerability

FAQ

baserCMS is an open-source content management system developed by baserProject. It provides a platform for creating and managing websites, blogs, and online applications.

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, compromising user data and enabling unauthorized actions.

The XSS vulnerability in baserCMS versions prior to 4.4.5 allows remote authenticated attackers to inject arbitrary scripts into the application. This can lead to the execution of malicious code in the victim's browser, potentially compromising user data, session information, or performing unauthorized actions.

To fix the XSS vulnerability, it is recommended to upgrade baserCMS to version 4.4.5 or later. The latest release includes patches and security enhancements that address the vulnerability.

As a temporary workaround, users can implement input validation and output encoding techniques to mitigate the risk of XSS attacks. However, workarounds may not provide complete protection and should be considered temporary measures until the application is upgraded.

Related vulnerabilities

Recent vulnerabilities recorded for baserproject/basercms.

How To Fix

Minimum fixed version

4.4.5

This is the first release that contains the fix.

composer require baserproject/basercms:4.4.5

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