
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-22732 is a security feature bypass vulnerability in Spring Security servlet applications where HTTP response headers may silently fail to be written under certain conditions when using the default lazy header writing mode. Disclosed on March 19, 2026, it affects Spring Security versions 5.7.0–5.7.21, 5.8.0–5.8.23, 6.3.0–6.3.14, 6.4.0–6.4.14, 6.5.0–6.5.8, and 7.0.0–7.0.3; older unsupported versions may also be affected. The vulnerability carries a CVSS v3.1 base score of 9.1 (Critical) (Spring Advisory, Red Hat Bugzilla).
The root cause is classified under CWE-425 (Direct Request / Forced Browsing) and CWE-166 (Improper Handling of Missing Special Element). The vulnerability lies in Spring Security's HeaderWriterFilter, which by default uses lazy (deferred) header writing — headers are only committed to the HTTP response at the end of the filter chain. Under certain conditions (e.g., when application-level cache headers are set), this lazy mechanism causes Spring Security's security headers to be omitted entirely from the response, rather than merged or overridden. An unauthenticated remote attacker with no privileges or user interaction required can trigger this condition by sending crafted requests that cause the header writing logic to be skipped, effectively stripping protective HTTP headers from responses. A workaround involves setting HeaderWriterFilter.shouldWriteHeadersEagerly to true, though this changes application behavior regarding header precedence (Spring Advisory, Red Hat Bugzilla).
Successful exploitation allows an unauthenticated network attacker to bypass security headers configured by the application — such as Content-Security-Policy, X-Frame-Options, Cache-Control, and Strict-Transport-Security — leaving responses without these protections. This can enable downstream attacks including cross-site scripting (XSS), clickjacking, sensitive data exposure via caching mechanisms, and other client-side attacks that the missing headers were designed to prevent. The CVSS score reflects high confidentiality and integrity impact with no availability impact, as the vulnerability does not directly cause data destruction or service disruption but can facilitate significant data exposure and application compromise (Spring Advisory, Feedly).
HeaderWriterFilter commits headers. This can occur when application code writes headers early in the response lifecycle.X-Content-Type-Options, X-Frame-Options, Cache-Control: no-cache, no-store, Content-Security-Policy). Tools like curl -I or browser developer tools can confirm header omission.X-Frame-Options, X-Content-Type-Options, Cache-Control: no-cache, no-store, Pragma: no-cache, or Content-Security-Policy.HeaderWriterFilter in Spring Security debug logs.no-store; browser-based XSS or clickjacking attempts succeeding against pages that should have been protected by CSP or framing headers.Upgrade Spring Security to the following fixed versions: 5.7.22+ (Enterprise Support only), 5.8.24+ (Enterprise Support only), 6.3.15+ (Enterprise Support only), 6.4.15+ (Enterprise Support only), 6.5.9+ (OSS), or 7.0.4+ (OSS). As an immediate workaround without upgrading, set HeaderWriterFilter.shouldWriteHeadersEagerly to true via an ObjectPostProcessor in Java-based configuration or a custom BeanPostProcessor in XML-based configuration — note this changes header precedence behavior. Additionally, organizations unable to patch immediately should consider enforcing security headers at the reverse proxy or WAF layer to compensate for the missing application-level headers (Spring Advisory). Downstream products from IBM (DevOps Test Performance, DevOps Solution Workbench, Operational Decision Manager, IBM Controller, Library Support for Spring), Atlassian, Splunk AppDynamics, and SAP have also released or are releasing patches addressing this dependency (IBM Advisory, Splunk Advisory, Atlassian Advisory).
The Spring team (Broadcom/VMware) published the official advisory on March 19, 2026, crediting researcher "Wyfrel" for responsible disclosure (Spring Advisory). The Belgian Centre for Cybersecurity (CCB) issued a warning urging immediate patching, characterizing the issue as enabling multiple types of client-side attacks (CCB Advisory). HeroDevs published multiple blog posts covering the vulnerability in depth, including developer guidance for checking exposure and a March 2026 Spring CVE roundup noting a surge of 30 Spring vulnerabilities in two months (HeroDevs Blog). Security media including SecurityOnline.info and Heise covered the vulnerability, and community discussion appeared on Reddit's r/java with developers noting confusion about security headers disappearing with no errors — a symptom directly related to this CVE.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."