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)
| Artifact | Affected versions | Fixed 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
72% of the dependent artifacts (108) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 429 |
| 2 hops | 573 |
| 3 hops | 295 |
| 4 hops | 15 |
| 5 hops | 4 |
Most used dependents
- de.tudarmstadt.ukp.inception.app » inception-model90 usages
- de.tudarmstadt.ukp.inception.app » inception-api76 usages
- de.tudarmstadt.ukp.inception.app » inception-api-annotation56 usages
- de.tudarmstadt.ukp.inception.app » inception-security53 usages
- de.tudarmstadt.ukp.inception.app » inception-api-schema50 usages
- de.tudarmstadt.ukp.inception.app » inception-api-render39 usages
- de.tudarmstadt.ukp.inception.app » inception-api-formats29 usages
- de.tudarmstadt.ukp.inception.app » inception-model-export24 usages
- de.tudarmstadt.ukp.inception.app » inception-ui-core24 usages
- de.tudarmstadt.ukp.inception.app » inception-annotation-storage21 usages
- de.tudarmstadt.ukp.inception.app » inception-project19 usages
- de.tudarmstadt.ukp.inception.app » inception-recommendation-api19 usages
- de.tudarmstadt.ukp.inception.app » inception-schema19 usages
- de.tudarmstadt.ukp.inception.app » inception-api-editor14 usages
- de.tudarmstadt.ukp.inception.app » inception-ui-annotation14 usages
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.
References
| Advisory | NVD CVE-2026-40988 | nvd.nist.gov |
| Package | spring-projects/spring-security | github.com |
| Web | spring-projects/spring-security release 6.5.11 | github.com |
| Web | spring-projects/spring-security release 7.0.6 | github.com |
| Web | security/cve-2026-40988 | spring.io |
