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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-434
- **Published:** 2026-08-19T19:26:06.041Z
- **Modified:** 2026-10-26T10:10:00.140Z

## Who should check

- Anyone running wekan \< 9.90

## Description

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 WITH\_API=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 and fixed versions

- wekan: \< 9.90 (cvelist)

## Mitigation

- Upgrade wekan to 9.90 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-68899. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-68899.md
Affected: wekan < 9.90
Fixed in: wekan 9.90

Steps:
1. Search this machine and project for wekan: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-68899 being exploited?

There is no confirmed exploitation: CVE-2026-68899 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-68899?

High: CVSS 8.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-68899?

wekan \< 9.90.

### Is there a fix for CVE-2026-68899?

Yes. Fixed in wekan 9.90. Upgrade wekan to 9.90 or later.

### How do I check if I'm affected by CVE-2026-68899?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/wekan/wekan/security/advisories/GHSA-jhph-whx8-wq6p>
- patch: <https://github.com/wekan/wekan/commit/f6ba472f6738bcd3763f133d3d9970f216df2263>
- other: <https://github.com/wekan/wekan/releases/tag/v9.90>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-68899>

HTML: <https://flawdb.com/CVE-2026-68899> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-68899>
