# CVE-2022-41905: Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled

Source: https://junglewise.ai/threats/cve-2022-41905-cross-site-scripting-vulnerability-in-wsgidav-when-directory  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-11-11  
License: CC BY 4.0 with a link back

CVE-2022-41905 · Severity: low · CVSS 3.1 · Published 2022-11-11

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.

Technologies: [wsgidav (PyPI)](https://junglewise.ai/threats/technologies/wsgidav). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2022-41905 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-41905 being exploited in the wild.

**How severe is CVE-2022-41905?** Low severity, with a CVSS score of 3.1, published 11 November 2022.

**Which products and versions are affected?** wsgidav (PyPI) ECOSYSTEM:introduced=3.0.0a1,fixed=4.1.0, GIT:introduced=0,fixed=e9606ab0f42f4c1a6611bc3c52de299b0aba7726|ECOSYSTEM:introduced=3.0.0,fixed=4.1.0.

**Is there a fix for CVE-2022-41905?** Yes. wsgidav (PyPI): upgrade to 4.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-41905?** Check whether you run wsgidav (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- wsgidav (PyPI): upgrade to 4.1.0 or later

  ```sh
  pip install "wsgidav>=4.1.0"
  ```


## Affected products

- wsgidav (PyPI) ECOSYSTEM:introduced=3.0.0a1,fixed=4.1.0, GIT:introduced=0,fixed=e9606ab0f42f4c1a6611bc3c52de299b0aba7726|ECOSYSTEM:introduced=3.0.0,fixed=4.1.0

## Identifiers

- CVE-2022-41905
- GHSA-xx6g-jj35-pxjv
- PYSEC-2022-43018

## Related threats

- [WsgiDAV MySQLBrowserProvider blind SQL injection](https://junglewise.ai/threats/cve-2026-55509-wsgidav-mysqlbrowserprovider-blind-sql-injection)
- [mar10 WsgiDAV path traversal in FilesystemProvider](https://junglewise.ai/threats/cve-2026-48099-mar10-wsgidav-path-traversal-in-filesystemprovider)
