CVE-2018-16406: Mayan EDMS XSS Vulnerability
Summary
CVE-2018-16406: An issue was discovered in Mayan EDMS before 3.0.2. The Cabinets app has XSS via a crafted cabinet label. Affects mayan-edms versions < 3.0.2. Fixed in 3.0.2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Mayan EDMS is an open-source document management system that allows users to store, organize, and manage documents in a digital format. It provides features such as document indexing, version control, and workflow automation. The Cabinets app in Mayan EDMS is responsible for managing cabinets, which are used to categorize and label documents. This vulnerability allows an attacker to execute cross-site scripting (XSS) attacks by exploiting a flaw in the cabinet label functionality.
Vulnerability Detail
The XSS vulnerability in Mayan EDMS allows an attacker to inject malicious code into the cabinet label field. When a user views a cabinet with a crafted label, the injected code is executed in the context of the user's browser. This can lead to various consequences, including the theft of sensitive information, session hijacking, or the execution of arbitrary actions on behalf of the user. The vulnerability was fixed in version 3.0.2 of Mayan EDMS.
How To Fix
Latest published version: 4.12.2 as of 22 Oct 2026
pip install --upgrade "mayan-edms==4.12.2"
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.0.2
This is the first release that contains the fix.
pip install --upgrade "mayan-edms==3.0.2"
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that only trusted individuals have access to the Mayan EDMS system and by monitoring for any suspicious activity.
Conclusion
The XSS vulnerability in Mayan EDMS allows attackers to execute malicious code by exploiting a flaw in the cabinet label functionality. Users are advised to upgrade to version 3.0.2 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for mayan-edms →
FAQ
Mayan EDMS is an open-source document management system that allows users to store, organize, and manage documents in a digital format.
The Cabinets app in Mayan EDMS is responsible for managing cabinets, which are used to categorize and label documents.
Cross-site scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.
The potential consequences of this vulnerability include the theft of sensitive information, session hijacking, or the execution of arbitrary actions on behalf of the user.
To protect your Mayan EDMS installation, make sure to upgrade to version 3.0.2 or later and regularly apply software updates to ensure the latest security patches are applied.
References
Related vulnerabilities
Recent vulnerabilities recorded for mayan-edms.