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.
Published: 2026-11-06
Score: n/a
EPSS: n/a
KEV: No
Impact: Unauthorized Access to Mail Server via Unvalidated Audience Claim
Action: Apply Patch
AI Analysis

Impact

Apache James implements the SASL OAuthBearer/XOAUTH2 authentication mechanism. A flaw exists where the server does not validate the AUD claim in a JWT payload when introspection is not explicitly configured. If an attacker can supply a JWT that contains valid credentials but an unauthorized AUD value, the server will accept the token and allow email access. This bypasses intended authorization controls, enabling data theft or other malicious activities.

Affected Systems

The vulnerability affects the Apache James mail server from the Apache Software Foundation. Versions older than 3.9.1 – including 3.9.1 – are known to lack proper AUD claim validation and introspection enforcement.

Risk and Exploitability

Because the flaw permits unauthorized users to misuse valid credentials, the impact is significant. No Public EPSS score is available and the vulnerability is not listed in the CISA KEV catalog, but the lack of mandatory AUD validation combined with the need for valid credentials indicates that once an attacker has any credential, the barrier to lateral movement within the mail system is removed. The likely attack vector is the SASL authentication channel, where a crafted JWT can be presented by an attacker who has, for example, stolen or guessed credentials.

Generated by OpenCVE AI on November 6, 2026 at 12:21 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache James to a release newer than 3.9.1 that validates AUD claims and requires introspection. This is the official fix recommended by the vendor.
  • Configure the OAuthBearer authentication to enforce explicit AUD claim checks and enable token introspection, ensuring that only tokens with permitted audience values are accepted. This mitigates any future misconfiguration before a patch is available.

Generated by OpenCVE AI on November 6, 2026 at 12:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 11:45:00 +0000

Type Values Removed Values Added
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.
Title Apache James: SASL OAUTHBEARER do not validate aud in JWT payload if misconfigred
Weaknesses CWE-345
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-11-06T11:38:46.849Z

Reserved: 2025-12-05T15:03:47.661Z

Link: CVE-2025-66621

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T12:17:13.983

Modified: 2026-11-06T12:17:13.983

Link: CVE-2025-66621

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T12:30:04Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity