CVE-2026-97791: Apache CXF: STSTokenValidator can accept untrusted SAML assertions because it shares validation state between requests

Published Oct 9, 2026
·
Updated

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 Software

1 affected component
Apache CXF<4.2.4, <4.1.9, <3.6.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache CXF to a version that resolves this vulnerability.

    Fixed in 4.2.4
  2. Upgrade

    Upgrade Apache CXF to a version that resolves this vulnerability.

    Fixed in 4.1.9
  3. Upgrade

    Upgrade Apache CXF to a version that resolves this vulnerability.

    Fixed in 3.6.13

Event History

Oct 9, 2026
CVE Published
via MITRE·10:19 AM
Data Sourced
via MITRE·10:19 AM
Description

Frequently Asked Questions

1

Which deployments are affected?

Only services that use STSTokenValidator to validate SAML tokens and do not have alwaysValidateToSts enabled are affected. The issue is tied to validation state shared across requests.

2

What does an attacker need to exploit this?

A remote attacker does not need authentication. They need to submit a forged SAML assertion signed with an untrusted certificate while legitimate requests are being processed, so that another request's trust-validation result can be reused.

3

Does enabling alwaysValidateToSts mitigate the issue?

Yes. The affected condition is specifically use of STSTokenValidator without alwaysValidateToSts set; enabling it avoids the described affected configuration.

4

Which versions contain the fix?

Upgrade to Apache CXF 4.2.4, 4.1.9, or 3.6.13.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203