{"id":"CVE-2022-41905","aliases":["GHSA-xx6g-jj35-pxjv","PYSEC-2022-43018"],"url":"https://o3.security/vulnerability/CVE-2022-41905","summary":"wsgidav is vulnerable to Cross-Site Scripting (XSS) when directory browsing is enabled","details":"### Impact\nImplementations using this library with directory browsing enabled may be susceptible to [Cross Site Scripting (XSS)](https://owasp.org/www-community/attacks/xss/) attacks.\n\n### Patches\nUsers can upgrade to v4.1.0\n\n### Workarounds\nSet `dir_browser.enable = False` in the configuration. For instance, when using a Python dictionary to configure the library:\n\n```\nconfig = {\n    # your normal configuration\n    \"dir_browser\": {\n      \"enable\": False\n    },\n}\napp = WsgiDAVApp(config)\n```\n\n### For more information\n\nNote that an attacker cannot exploit this vulnerability, by simply  uploading a file or folder with a manipulated file name.\nHowever if the WsgiDAV library is used in a scenario where untrusted data is displayed in the directory browser's user interface (e.g. 'realm' or user name, ...) XSS may happen.\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [mar10/wsgidav](https://github.com/mar10/wsgidav/)\n* See the [security policy](https://github.com/mar10/wsgidav/security/policy)\n","published":"2022-11-11T00:00:00Z","modified":"2026-08-12T03:51:25.858843237Z","cvss":{"score":8.2,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"wsgidav","fixedVersion":"4.1.0"}],"fix":{"url":"https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726","label":"mar10/wsgidav@e9606ab"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41905.json"},{"type":"ADVISORY","url":"https://github.com/mar10/wsgidav/security/advisories/GHSA-xx6g-jj35-pxjv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41905"},{"type":"FIX","url":"https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726"},{"type":"PACKAGE","url":"https://github.com/mar10/wsgidav"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2022-43018.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:25.858843237Z"}}