Skip to content

mailcow-dockerized

mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping

CVE-2026-40878Published 21 Apr 2026, 19:21 UTC

Real-world risk

0.9/ 10Low

Routine

If the vulnerable configuration applies to you: 2.1

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.1

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

mailcow: dockerized is an open source groupware/email suite based on docker. In versions prior to 2026-03b, the mailcow web interface passes the raw `$_SERVER['REQUEST_URI']` to Twig as a global template variable and renders it inside a JavaScript string literal in the `setLang()` helper of `base.twig`, relying on Twig's default HTML auto-escaping instead of the context-appropriate `js` escaping strategy. In addition, the `query_string()` Twig helper merges all current `$_GET` parameters into the language-switching links on the login page, so attacker-supplied parameters are reflected and preserved across navigation. Version 2026-03b fixes the vulnerability.

Am I affected?

ProductAffected versions (from the sources)Fixed in
mailcow-dockerizedNiche< 2026-03b2026-03b

What to do

Update to a fixed version: 2026-03b.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T4: Weaponized (× 1.00)

A Metasploit module, a Nuclei template, or a verified Exploit-DB entry

  • Nuclei scanner template (link)

EPSS 0.8% chance of exploitation in 30 days (percentile 58), as of 2026-12-05.

The arithmetic
  1. Prerequisites multiplied together0.315
  2. Threat T4: Weaponized1.000
  3. 10 × impact 0.3 × prerequisites 0.315 × threat 10.945
  4. Rounded to one decimal between 0.1 and 100.9

How the score works

Exploitation and evidence timeline

  1. 21 Apr 2026 Published
  2. 3 Dec 2026 Nuclei scanner template first seen
  3. 3 Dec 2026 Risk 0.9 (cvss fallback)

Weakness

CWE-79

References

Get alerts for mailcow-dockerized

Free email or text alerts when a vulnerability in mailcow-dockerized reaches risk 8 or higher. Nothing else.