Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-40878— mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping

EPSS 5.70% · P90
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40878

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
mailcow-dockerized Login Page has Reflected Parameter Injection / Wrong-Context XSS Escaping
Source: NVD (National Vulnerability Database)
Vulnerability Description
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)
Vulnerability Title
mailcow: dockerized 跨站脚本漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
mailcow: dockerized是mailcow开源的一个docker化的mailcow应用软件。 mailcow: dockerized 2026-03b之前版本存在跨站脚本漏洞,该漏洞源于Web界面将原始$_SERVER[ REQUEST_URI ]传递给Twig作为全局模板变量,并在JavaScript字符串字面量中渲染,且query_string助手合并所有当前$_GET参数到语言切换链接,可能导致跨站脚本攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
mailcowmailcow-dockerized < 2026-03b -

II. Public POCs for CVE-2026-40878

#POC DescriptionSource LinkShenlong Link
1mailcow < 2026-03b reflects raw REQUEST_URI into JavaScript and href links on the login page, allowing attackers to inject parameters that break JS logic and enable phishing. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40878.yamlPOC Details
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40878

登录查看更多情报信息。

Same Patch Batch · mailcow · 2026-04-21 · 6 CVEs total

CVE-2026-408717.2 HIGHmailcow: dockerized vulnerable to Second Order SQL Injection in quarantine category via AP
CVE-2026-40875mailcow: dockerized vulnerable to stored XSS in user login history real_rip
CVE-2026-40872mailcow: dockerized vulnerable to stored XSS in autodiscover logs email address field
CVE-2026-40874mailcow: dockerized missing authorization on Forwarding Hosts delete action
CVE-2026-40873mailcow: dockerized vulnerable to stored XSS in Quarantine attachment filenames

IV. Related Vulnerabilities

V. Comments for CVE-2026-40878

No comments yet


Leave a comment