CVE-2021-39136
PHP vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in baserCMS versions 4.5.0 and earlier, specifically in the file upload functionality of the management system. The vulnerability was disclosed on August 25, 2021, and was assigned CVE-2021-39136. This security issue affects the file upload feature in the administrative interface of baserCMS (JVN, GitHub Advisory).

Technical details

The vulnerability exists in the file upload functionality within the management system of baserCMS. The issue was specifically located in the lib/Baser/Plugin/Uploader/View/UploaderFiles/admin/ajax_image.php file, where user input was not properly sanitized before being displayed. The vulnerability received a CVSS v3.0 Base Score of 4.8 (AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N) (JVN).

Impact

When exploited, this vulnerability could allow an attacker to execute malicious JavaScript code in the user's web browser. This could result in page content manipulation and potential cookie information leakage. The impact is particularly significant when the management system is accessed by multiple users (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in baserCMS version 4.5.1. Users are strongly advised to update to this version or later to address the security issue. The fix involved properly sanitizing user input by implementing HTML encoding using the h() function, as evidenced in the patch (GitHub Commit).

Community reactions

The vulnerability was initially reported by Akagi Yusuke of NTT-ME CORPORATION to IPA, and JPCERT/CC coordinated with the developer under Information Security Early Warning Partnership (JVN).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-65346CRITICAL9.1
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 04, 2025
CVE-2025-66468HIGH7.6
  • PHPPHP
  • aimeos/ai-cms-grapesjs
NoYesDec 02, 2025
CVE-2025-65345MEDIUM6.5
  • PHPPHP
  • alexusmai/laravel-file-manager
NoNoDec 03, 2025
CVE-2025-65657MEDIUM6.5
  • PHPPHP
  • feehi/cms
NoNoDec 02, 2025
CVE-2025-65186MEDIUM6.1
  • PHPPHP
  • getgrav/grav
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management