Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2022-41905: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in mar10 wsgidav

0
Medium
Published: Fri Nov 11 2022 (11/11/2022, 00:00:00 UTC)
Source: CVE
Vendor/Project: mar10
Product: wsgidav

Description

WsgiDAV is a generic and extendable WebDAV server based on WSGI. Implementations using this library with directory browsing enabled may be susceptible to Cross Site Scripting (XSS) attacks. This issue has been patched, users can upgrade to version 4.1.0. As a workaround, set `dir_browser.enable = False` in the configuration.

AI-Powered Analysis

AILast updated: 06/22/2025, 13:52:49 UTC

Technical Analysis

CVE-2022-41905 is a medium-severity vulnerability affecting the mar10 wsgidav project, a generic and extendable WebDAV server implemented using the WSGI interface for Python web applications. The vulnerability is classified under CWE-79, which corresponds to improper neutralization of input during web page generation, commonly known as Cross-Site Scripting (XSS). Specifically, this issue arises when directory browsing is enabled in wsgidav versions from 3.0.0a1 up to but not including 4.1.0. In such configurations, user-supplied input is not properly sanitized before being embedded in dynamically generated web pages, allowing an attacker to inject malicious scripts. These scripts could execute in the context of the victim's browser, potentially leading to session hijacking, credential theft, or unauthorized actions performed on behalf of the user. The vulnerability has been addressed in version 4.1.0 of wsgidav. As an immediate mitigation, disabling directory browsing by setting the configuration parameter `dir_browser.enable = False` can prevent exploitation. No known exploits have been reported in the wild to date, but the presence of this vulnerability in a web-facing service poses a risk, especially if directory browsing is enabled and accessible to untrusted users.

Potential Impact

For European organizations utilizing wsgidav as part of their WebDAV infrastructure, this vulnerability could lead to unauthorized script execution in users' browsers, compromising confidentiality and integrity of user sessions and data. This is particularly concerning for organizations that expose WebDAV services for document management, collaboration, or file sharing, as attackers could leverage XSS to steal authentication tokens or perform actions with the victim's privileges. The impact is primarily on confidentiality and integrity, with limited direct impact on availability. However, successful exploitation could facilitate further attacks such as privilege escalation or lateral movement within the network. Given the medium severity and the fact that exploitation requires directory browsing to be enabled and accessible, the risk is moderate but non-negligible. Organizations handling sensitive or regulated data (e.g., finance, healthcare, government) could face compliance and reputational damage if exploited.

Mitigation Recommendations

1. Upgrade wsgidav to version 4.1.0 or later, where the vulnerability is patched. 2. If immediate upgrade is not feasible, disable directory browsing by setting `dir_browser.enable = False` in the wsgidav configuration to prevent exposure of the vulnerable functionality. 3. Restrict access to WebDAV services via network controls such as firewalls or VPNs to limit exposure to trusted users only. 4. Implement Content Security Policy (CSP) headers on the WebDAV server to reduce the impact of potential XSS attacks by restricting the execution of unauthorized scripts. 5. Conduct regular security assessments and code reviews of custom integrations with wsgidav to ensure no additional injection vectors exist. 6. Monitor web server logs for unusual requests or attempts to inject scripts, and employ Web Application Firewalls (WAFs) with rules targeting XSS patterns specific to WebDAV directory listings. 7. Educate users about the risks of clicking on suspicious links or executing scripts from untrusted sources, especially when interacting with WebDAV services.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
GitHub_M
Date Reserved
2022-09-30T00:00:00.000Z
Cisa Enriched
true

Threat ID: 682d9846c4522896dcbf4a8f

Added to database: 5/21/2025, 9:09:26 AM

Last enriched: 6/22/2025, 1:52:49 PM

Last updated: 2/7/2026, 10:20:36 PM

Views: 47

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats