CVE-2026-52891 Details
Description
Wekan is open source kanban built with Meteor. Prior to 9.07, Wekan avatar upload functionality embeds user-supplied filenames into paths later passed to child_process.exec() for MIME-type detection. Because models/avatars.js and models/fileValidation.js used a shell command with the avatar filename, shell metacharacters such as backticks and $() in the filename could execute commands on the server. This issue is fixed in version 9.07.
A remote code execution vulnerability exists in Wekan versions prior to 9.07. The issue arises in the avatar upload feature, where user-provided filenames are incorporated into file paths that are subsequently used with child_process.exec() for MIME type detection. This creates an opportunity for shell metacharacters, such as backticks and command substitution syntax, to be executed on the server. Although a similar vulnerability in file attachments was addressed, the avatar upload issue remained unpatched until version 9.07.
Users can update to Wekan version 9.07 or later, where this vulnerability has been fixed. For those maintaining their own Wekan instances, it is recommended to sanitize filenames by removing non-alphanumeric characters before storing them, use the child_process.execFile() method instead of exec() to prevent shell injection, and apply the same fix used for regular file attachments by using only MongoDB ObjectIDs in avatar file paths.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 15, 2026CISA-ADP
Assessed Jul 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wekan/wekan/commit/a4c74a5980e9f778eb444fd346f32aa3d16786a9 | [email protected] | Source CodeVendor |
| https://github.com/wekan/wekan/releases/tag/v9.07 | [email protected] | Release NotesVendor |
| https://github.com/wekan/wekan/security/advisories/GHSA-35j7-h385-2q9g | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Wekan | <= 9.06 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 17, 2026 | CVE Modified | CISA-ADP |
| Jul 15, 2026 | New CVE Received | [email protected] |
Volerion