Unencoded HTML Outputs in Spring Security May Allow Cross-Site Scripting

HIGH | JUNE 09, 2026 | CVE-2026-41003

Description

An attacker able to influence values in RelyingPartyRegistration may be able to run arbitrary code on HTML forms generated by Spring Security filters.

Affected Spring Products and Versions

Spring Security:

  • 7.0.0 - 7.0.5
  • 6.5.0 - 6.5.10
  • 6.4.0 - 6.4.16
  • 6.3.0 - 6.3.16
  • 5.8.0 - 5.8.25
  • 5.7.23 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
7.0.6OSS
7.0.5.1Enterprise Support Only
6.5.11OSS
6.5.10.2Enterprise Support Only
6.4.17Enterprise Support Only
6.3.17Enterprise Support Only
5.8.26Enterprise Support Only
5.7.24Enterprise Support Only

No further mitigation steps are necessary.

History

  • 2026-06-09: Initial vulnerability report published.

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