Incorrect header handling in mod-wsgi
A vulnerability was found in mod_wsgi. The X-Client-IP header is not removed from a request from an untrusted proxy, allowing an attacker to pass the X-Client-IP header to the target WSGI application because the condition to remove it is missing.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mod-wsgi | < 4.9.3 | 4.9.3 |
References
- https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L14046-L14082
- https://github.com/GrahamDumpleton/mod_wsgi/blob/4.9.2/src/server/mod_wsgi.c#L13940-L13941
- https://modwsgi.readthedocs.io/en/latest/release-notes/version-4.9.3.html
- https://github.com/advisories/GHSA-7527-8855-9cf8
- https://nvd.nist.gov/vuln/detail/CVE-2022-2255
- https://github.com/GrahamDumpleton/mod_wsgi/commit/af3c0c2736bc0b0b01fa0f0aad3c904b7fa9c751
- https://github.com/GrahamDumpleton/mod_wsgi
- https://github.com/pypa/advisory-database/tree/main/vulns/mod-wsgi/PYSEC-2022-254.yaml
- https://lists.debian.org/debian-lts-announce/2022/09/msg00021.html
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Weakness (CWE)
CWE-345- Platform
- Python (PyPI)
- Package
mod-wsgi- Disclosed
- 25.08.2022
- Updated
- 11.10.2026 11:20
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2022-254 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-7527-8855-9cf8 - CC BY 4.0
Vulnerability history: mod-wsgi
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.