HIGH 7.5

CVE-2026-40988

Spring Security SAML2 Service Provider: Unbounded writer inflates the compressed SAML payload into memory (DoS)

Description

An application using spring-security-saml2-service-provider and the REDIRECT binding for SAML 2.0 Login or Logout may be vulnerable to a denial of service by way of an unbounded writer that inflates the compressed SAML payload into memory.

Affected versions: Spring Security 5.7.0 through 5.7.23; 5.8.0 through 5.8.25; 6.3.0 through 6.3.16; 6.4.0 through 6.4.16; 6.5.0 through 6.5.10; 7.0.0 through 7.0.5.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.security » spring-security-saml2-service-provider
<= 5.7.23>= 5.8.0, <= 5.8.25>= 6.3.0, <= 6.3.16>= 6.4.0, <= 6.4.16>= 6.5.0, < 6.5.11>= 7.0.0, < 7.0.6
6.5.11, 7.0.6

Blast radius

1affected artifacts
164affected versions
149dependent artifacts (est.)
1,316dependent versions

72% of the dependent artifacts (108) still pull an affected version in their latest release.

DepthDependent versions
Direct
429
2 hops
573
3 hops
295
4 hops
15
5 hops
4

Most used dependents

Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.