CVE-2026-22718: Under Some Conditions Spring Security HTTP Headers Are not Written

CRITICAL | MARCH 19, 2026 | CVE-2026-22732

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 can open up applications to various attacks including exposing sensitive data via caching mechanisms.

Affected Spring Products and Versions

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
  • Older, unsupported versions may also be affected

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.

Affected version(s) Fix version Availability
5.7.21 5.7.22 Enterprise Support Only
5.8.23 5.8.24 Enterprise Support Only
6.3.14 6.3.15 Enterprise Support Only
6.4.14 6.4.15 Enterprise Support Only
6.5.8 6.5.9 OSS
7.0.3 7.0.4 OSS

Credit

The issue was identified and responsibly reported by Wyfrel.

References

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all