CVE-2026-22732

CRITICAL

Under Some Conditions Spring Security HTTP Headers Are not Written

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2026-22732. PoCs published by semgrep.

AI-analyzed exploit summary This repository contains a functional proof-of-concept for CVE-2026-22732, demonstrating how Spring Security HTTP response headers are silently dropped when controller code writes directly to the servlet response. It includes vulnerable endpoints and tests to verify the presence or absence of security headers.

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.

Exploits (1)

nomisec WORKING POC
by semgrep · poc
https://github.com/semgrep/cve-2026-22732-demo

This repository contains a functional proof-of-concept for CVE-2026-22732, demonstrating how Spring Security HTTP response headers are silently dropped when controller code writes directly to the servlet response. It includes vulnerable endpoints and tests to verify the presence or absence of security headers.

Classification
Working Poc 95%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: Spring Security 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, 7.0.0–7.0.3
No auth needed
Prerequisites: Spring Boot application with Spring Security configured
devstral-2 · analyzed Apr 09, 2026 Full analysis →

References (1)

Core 1

Scores

CVSS v3 9.1
EPSS 0.0003
EPSS Percentile 8.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable yes
Technical Impact total

Details

CWE
CWE-425
Status published
Products (14)
org.springframework.security/spring-security-web 0Maven
Spring/Spring Security 5.7.0 - 5.7.21
Spring/Spring Security 5.8.0 - 5.8.23
Spring/Spring Security 6.3.0 - 6.3.14
Spring/Spring Security 6.4.0 - 6.4.14
Spring/Spring Security 6.5.0 - 6.5.8
Spring/Spring Security 7.0.0 - 7.0.3
VMware/Spring Security 5.7.0 - 5.7.21
VMware/Spring Security 5.8.0 - 5.8.23
VMware/Spring Security 6.3.0 - 6.3.14
... and 4 more
Published Mar 19, 2026
Tracked Since Mar 20, 2026