{"id":"CVE-2022-41905","aliases":["CVE-2022-41905","GHSA-xx6g-jj35-pxjv","PYSEC-2022-43018"],"related":[],"kind":"vulnerability","state":"published","title":"wsgidav is vulnerable to Cross-Site Scripting (XSS) when directory browsing is enabled","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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)","format":"markdown","source":"ghsa"},{"lang":"es","text":"WsgiDAV es un servidor WebDAV genérico y ampliable basado en WSGI. Las implementaciones que utilizan esta librería con la exploración de directorios habilitada pueden ser susceptibles a ataques de Cross Site Scripting (XSS). Este problema ha sido solucionado, los usuarios pueden actualizar a la versión 4.1.0. Como workaround, establezca `dir_browser.enable = False` en la configuración.","source":"nvd"}],"published":"2022-11-11T00:00:00.000Z","modified":"2026-06-17T05:04:02.150Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N","score":8.2,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 3.0.0a1, < 4.1.0","status":"affected"}],"vendor":"mar10","product":"wsgidav","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.0.0a1","status":"affected","fixed":"4.1.0"}],"ecosystem":"PyPI","package":"wsgidav","purl":"pkg:pypi/wsgidav","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.0.0","fixed":"4.1.0"}],"vendor":"wsgidav_project","product":"wsgidav","cpe":"cpe:2.3:a:wsgidav_project:wsgidav:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"e9606ab0f42f4c1a6611bc3c52de299b0aba7726"},{"type":"ecosystem","introduced":"3.0.0","status":"affected","fixed":"4.1.0"}],"ecosystem":"PyPI","package":"wsgidav","purl":"pkg:pypi/wsgidav","repo":"https://github.com/mar10/wsgidav","source":"pysec"}],"references":[{"url":"https://github.com/mar10/wsgidav/security/advisories/GHSA-xx6g-jj35-pxjv","tags":["advisory","mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41905","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mar10/wsgidav","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2022-43018.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-23T15:46:43.801Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-41905","url":"https://www.cve.org/CVERecord?id=CVE-2022-41905","licence":"CVE Terms of Use","modified":"2025-04-23T16:37:51.851Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx6g-jj35-pxjv","url":"https://github.com/advisories/GHSA-xx6g-jj35-pxjv","licence":"CC-BY-4.0","modified":"2024-11-19T19:23:51.666Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-41905","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-41905","licence":"Public domain","modified":"2026-06-17T05:04:02.150Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2022-43018","url":"https://osv.dev/vulnerability/PYSEC-2022-43018","licence":"CC-BY-4.0","modified":"2023-11-08T04:10:35.080Z"}],"updatedAt":"2026-11-25T22:58:16.426Z","epss":{"score":0.00482,"percentile":0.43225,"date":"2026-12-01T12:00:22.000Z"}}