CVE-2025-66621 Apache James: SASL OAUTHBEARER do not validate aud in JWT payload if misconfigred
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2025-66621?
CVE-2025-66621 is a high-severity vulnerability in Apache James, published on 6 Nov 2026.
Official description
Apache James SASL OAuthBearer/XOAUTH2 prior versions 3.9.1 fails to validate correctly AUD claim of JWT payloads when introspection is not configured.
This allows an attacker with valid credentials to access the mail server even if they are not authorized to do so.
We recommend users to upgrade to non vulnerable version that forces explicit configuration of aud claims and forces introspection.
Weakness: CWE-345
Which versions are affected by CVE-2025-66621?
How do I fix CVE-2025-66621?
No fix has been published for CVE-2025-66621 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-66621 being exploited?
There is no known exploitation of CVE-2025-66621 in the wild and no public exploit code.
Sources
Also known as GHSA-rg6c-rqpp-49q4.