Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled
Impact
Implementations using this library with directory browsing enabled may be susceptible to Cross Site Scripting (XSS) attacks.
Patches
Users can upgrade to v4.1.0
Workarounds
Set dir_browser.enable = False in the configuration. For instance, when using a Python dictionary to configure the library:
config = {
# your normal configuration
"dir_browser": {
"enable": False
},
}
app = WsgiDAVApp(config)
For more information
Note that an attacker cannot exploit this vulnerability, by simply uploading a file or folder with a manipulated file name. However 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.
If you have any questions or comments about this advisory:
- Open an issue in mar10/wsgidav
- See the security policy
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Python (PyPI) | wsgidav | >= 3.0.0a1, < 4.1.0 | 4.1.0 |
Referencias
- https://github.com/mar10/wsgidav/commit/e9606ab0f42f4c1a6611bc3c52de299b0aba7726
- https://github.com/mar10/wsgidav/security/advisories/GHSA-xx6g-jj35-pxjv
- https://nvd.nist.gov/vuln/detail/CVE-2022-41905
- https://github.com/mar10/wsgidav
- https://github.com/pypa/advisory-database/tree/main/vulns/wsgidav/PYSEC-2022-43018.yaml
- Vector CVSS
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N- Debilidad (CWE)
CWE-79- Plataforma
- Python (PyPI)
- Paquete
wsgidav- Publicada
- 11.11.2022
- Actualizado
- 11.10.2026 11:20
Fuentes y licencias
OSV / GitHub Advisory Database - PYSEC-2022-43018 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-xx6g-jj35-pxjv - CC BY 4.0
Historial de vulnerabilidades: wsgidav
Todas las vulnerabilidades publicadas de este paquete (Python (PyPI)), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 3
- Primera → última
- 11.2022 08.2026
- Sin corrección
- 0
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 3
Divulgaciones por año
- 2022: 1
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 2
-
Cross Site Scripting vulnerability in wsgidav when directory browsing is enabled esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.