Mayan EDMS Cross-Site Scripting Vulnerability in Authentication Component

Vulnerability

A DOM-based cross-site scripting (XSS) vulnerability has been identified in Mayan EDMS versions through 4.10.1. The issue resides within the authentication component, specifically in the file '/authentication/'. This vulnerability allows remote attackers to execute arbitrary JavaScript in the context of the victim's browser. The root cause is the application's failure to properly sanitize user-controlled data before it is reflected in a JavaScript context, particularly through the manipulation of 'window.location'. Exploitation requires convincing a user to open a malicious URL.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can execute scripts in the context of the user's session.

Reproduction

The vulnerability can be reproduced by sending a request to the '/authentication/' endpoint with a crafted 'window.location' value that includes JavaScript code. This can be done by manipulating the URL to include the JavaScript payload in the hash or query parameters, which the application will then process without proper sanitization.

Remediation

Users are advised to upgrade to Mayan EDMS version 4.10.2, which addresses this vulnerability. For those using older versions, backports are in progress and will be available once the respective CI pipelines are complete.

Added: Dec 14, 2025, 11:19 PM
Updated: Dec 14, 2025, 11:19 PM

Vulnerability Rating

Custom Algorithm
spread
3.1
impact
1.7
exploitability
7.7
remediation
7.7
relevance
1.5
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.