What’s Vulnerable › Vulnerabilities
CVE-2026-22732: Under Some Conditions Spring Security HTTP Headers Are not Written
- Severity: critical (CVSS 9.1 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-03-19 · updated 2026-06-17
- Weakness: CWE-425
Description
When applications specify HTTP response headers for servlet applications using Spring Security, there is the possibility that the HTTP Headers will not be written. This issue affects Spring Security Servlet applications using lazy (default) writing of HTTP Headers: : from 5.7.0 through 5.7.21, from 5.8.0 through 5.8.23, from 6.3.0 through 6.3.14, from 6.4.0 through 6.4.14, from 6.5.0 through 6.5.8, from 7.0.0 through 7.0.3.
Affected products
- Spring Security: before 5.7.22; from 5.8.0 before 5.8.24; from 6.3.0 before 6.3.15; from 6.4.0 before 6.4.15; from 6.5.0 before 6.5.9; from 7.0.0 before 7.0.4 — fixed in 5.7.22, 5.8.24, 6.3.15, 6.4.15, 6.5.9, 7.0.4
- Spring Security: from 5.7.0 through 5.7.21; from 5.8.0 through 5.8.23; from 6.3.0 through 6.3.14; from 6.4.0 through 6.4.14; from 6.5.0 through 6.5.8; from 7.0.0 through 7.0.3
How to fix
Upgrade to a fixed version: Spring Security 5.7.22, 5.8.24, 6.3.15, 6.4.15. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-22732 or the next vulnerability affects your stack