ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
Summary
ModSecurity's Insufficient Return Value Handling can Lead to XSS and Source Code Disclosure
Original description
The description as published by the source.
ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. In versions 2.9.11
and below, an attacker can override the HTTP response’s Content-Type, which could lead to several issues depending on the HTTP scenario. For example, we have demonstrated the potential for XSS and arbitrary script source code disclosure in the latest version of mod_security2. This issue is fixed in version 2.9.12.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2025-54571 modsecurity-apache Fixed in: 2.9.3-3+deb11u5
- Ubuntu UBUNTU-CVE-2025-54571 modsecurity
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- report github.com
- web lists.debian.org