{"id":"CVE-2022-41905","aliases":["EUVD-2022-0366","GHSA-xx6g-jj35-pxjv","PYSEC-2022-43018"],"status":"published","title":"wsgidav is vulnerable to Cross-Site Scripting (XSS) when directory browsing is enabled","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.","severity":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.0041,"percentile":0.35578,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2022-11-11T00:00:00Z","modified":"2026-10-28T02:30:54Z","fixes":[{"ecosystem":"PyPI","package":"wsgidav","fixed_in":["4.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"wsgidav","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0a1"},{"fixed":"4.1.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"wsgidav","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0a1"},{"fixed":"4.1.0"}]}],"versions":["3.0.0","3.0.0a1","3.0.0a2","3.0.0a3","3.0.0a4","3.0.0a5","3.0.0a6","3.0.0a7","3.0.1","3.0.2","3.0.3","3.0.5a2","3.0.5a3","3.1.0","3.1.1","4.0.0","4.0.0a2","4.0.1","4.0.2"]},{"source":"osv","ecosystem":"PyPI","package":"wsgidav","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"e9606ab0f42f4c1a6611bc3c52de299b0aba7726"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"4.1.0"}]}],"versions":["3.0.0","3.0.1","3.0.2","3.0.3","3.0.5a2","3.0.5a3","3.1.0","3.1.1","4.0.0","4.0.0a2","4.0.1","4.0.2"]}],"products":[{"vendor":"mar10","product":"wsgidav"},{"vendor":"wsgidav_project","product":"wsgidav"}],"references":[{"url":"https://github.com/mar10/wsgidav/security/advisories/GHSA-xx6g-jj35-pxjv","tags":["x_transferred","Mitigation","Third Party Advisory","advisory","web"]},{"url":"https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726","tags":["x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41905","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2022-43018.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-xx6g-jj35-pxjv"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/41xxx/CVE-2022-41905.json","tags":["advisory"]},{"url":"https://github.com/mar10/wsgidav","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-41905","title":"wsgidav is vulnerable to Cross-Site Scripting (XSS) when directory browsing is enabled","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.","status":"published","published":"2022-11-11T00:00:00Z","modified":"2025-04-23T16:37:51.851Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:34:27.640972Z"}],"euvd":[{"id":"EUVD-2022-0366","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.","status":"published","published":"2022-11-11T00:00:00Z","modified":"2025-04-23T16:37:51Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T20:52:12.313971Z"}],"ghsa":[{"id":"GHSA-xx6g-jj35-pxjv","title":"Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled","description":"### 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","status":"published","published":"2022-11-16T00:02:05Z","modified":"2024-11-19T19:03:48Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:38:21.777721Z"}],"nvd":[{"id":"CVE-2022-41905","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.","status":"published","published":"2022-11-11T21:15:09.743Z","modified":"2026-06-17T05:04:02.15Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:07:31.914793Z"}],"osv":[{"id":"CVE-2022-41905","title":"wsgidav is vulnerable to Cross-Site Scripting (XSS) when directory browsing is enabled","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.","status":"published","published":"2022-11-11T00:00:00Z","modified":"2026-10-28T02:30:54.763431678Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"GHSA-xx6g-jj35-pxjv","title":"Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled","description":"### 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","status":"published","published":"2022-11-16T00:02:05Z","modified":"2024-11-19T19:23:51.666055Z","cvss":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:47:00.604718Z"},{"id":"PYSEC-2022-43018","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.","status":"published","published":"2022-11-11T21:15:00Z","modified":"2023-11-08T04:10:35.080565Z","updated_at":"2026-11-02T15:52:53.449407Z"}]}}
