CVE-2026-68899: Wekan: File Upload MIME Type Validation Bypass — Stored XSS via Missing System Binary Fallback

Published Aug 19, 2026
·
Updated

Wekan is open source kanban built with Meteor. Prior to 9.90, isFileValid() in models/fileValidation.js used the Unix file command for content-based MIME detection, but detectMimeFromFile() silently returned undefined when that binary was unavailable and the validation fell back to the attacker-controlled fileObj.type supplied through server/routes/attachmentApi.js. On deployments with WITHAPI=true and no file binary, an authenticated board member could label HTML containing JavaScript as image/png, bypass the dangerous MIME check, and store active content under the Wekan origin for execution when another user opened it. Version 9.90 adds looksLikeDangerousMarkup() to inspect file bytes and force dangerous-content scanning when MIME detection is unavailable. This issue is fixed in version 9.90.

Affected Software

1 affected component
Wekan Wekan<9.90

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Wekan to a version that resolves this vulnerability.

    Fixed in 9.90

Event History

Aug 19, 2026
CVE Published
via MITRE·07:26 PM
Data Sourced
via MITRE·07:26 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments running versions before 9.90 are exposed when WITH_API=true and the Unix file binary is unavailable. The vulnerable path is the attachment API handling uploads.

2

What does an attacker need to exploit it?

The attacker needs an authenticated Wekan account with board-member access and must be able to upload an attachment through the affected API. They can claim malicious HTML is image/png, after which another user must open the uploaded content for the stored JavaScript to execute.

3

How can I tell whether temporary mitigation is needed?

Check whether the instance is older than 9.90, has WITH_API=true, and lacks the Unix file command used for content-based MIME detection. That combination causes validation to rely on the attacker-controlled MIME type.

4

What should be done if upgrading cannot happen immediately?

Ensure the Unix file binary is installed and available to the Wekan process so content-based MIME detection can run. Restricting access to the affected attachment API or preventing untrusted attachment uploads also reduces exposure until version 9.90 can be deployed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203