CVE-2026-97791
Apache CXF: STSTokenValidator can accept untrusted SAML assertions because it shares validation state between requests
Description
In Apache CXF, STSTokenValidator checks whether a SAML assertion is signed by a trusted certificate before deciding to send it to the STS. That result was stored in one object shared by all requests, so one request could read another's result. A remote, unauthenticated attacker could send a forged assertion signed with an untrusted certificate while legitimate requests were being processed, and it could be accepted as trusted without ever reaching the STS. Only services that use STSTokenValidator to validate SAML tokens without alwaysValidateToSts set are affected. Users are recommended to upgrade to versions 4.2.4 or 4.1.9 or 3.6.13, which fix this issue.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.cxf » cxf-rt-ws-securitypreliminary | < 3.6.13>= 4.0.0, < 4.1.9>= 4.2.0, < 4.2.4 | 3.6.13, 4.1.9, 4.2.4 |
Blast radius
67% of the dependent artifacts (1,845) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 23,264 |
| 2 hops | 33,421 |
| 3 hops | 27,906 |
| 4 hops | 17,722 |
| 5 hops | 10,622 |
| 6 hops | 3,874 |
Most used dependents
- org.wildfly » wildfly-feature-pack372 usages
- org.mule.transports » mule-transport-http202 usages
- be.milieuinfo.security » acd-openam-client185 usages
- org.mule.transports » mule-transport-vm181 usages
- be.vlaanderen.dov » dov-neo-setup158 usages
- be.milieuinfo.security » acd-openam-soap-client153 usages
- org.apache.cxf.services.sts » cxf-services-sts-core150 usages
- ddf.security.core » security-core-api142 usages
- org.mule.modules » mule-module-sfdc114 usages
- ddf.security.core » security-core-impl109 usages
- be.milieuinfo.msb » msb-service-proxy-common108 usages
- ddf.security » ddf-security-common106 usages
- org.mule.modules » mule-module-cxf98 usages
- be.vlaanderen.dov » domain-core89 usages
- be.milieuinfo.security » acd-openam-ws-client88 usages
Computed from the dependency graph of build 20261124.0621 (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 | CVE record CVE-2026-97791 | github.com |
| Advisory | thread.html/ssdr417qgms9fjl0m8802xd8170wnk1l | lists.apache.org |
| Advisory | NVD CVE-2026-97791 | nvd.nist.gov |
| Web | lists/oss-security/2026/10/09/10 | openwall.com |
| Web | maven2 | repo.maven.apache.org |
