CVE-2025-66621

Apache James: SASL OAUTHBEARER do not validate aud in JWT payload if misconfigred

Published Nov 6, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Apache James implements the SASL OAuthBearer/OAuth2 authentication mechanism. When introspection is not explicitly configured, the server fails to validate the aud claim in a JWT payload, allowing a client to provide a token with a valid credential but an unauthorized audience. The server accepts the token, granting the attacker access to the mail server and potentially all mailbox contents, bypassing intended authorization controls.

Affected Systems

Apache James from the Apache Software Foundation is affected. The vulnerability exists in all releases prior to version 3.9.1; versions 3.9.1 and later incorporate proper AUD claim validation and require introspection enforcement.

Risk and Exploitability

The flaw permits attackers who possess any valid credential to subvert authorization. The EPSS score of less than 1 % indicates a low but non‑zero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Exploitation is likely via the SASL authentication channel where a crafted JWT is presented by an attacker who has stolen or guessed credentials. Successful exploitation leads to unauthorized access and potential data theft. The CVSS score of 8.1 indicates a high severity, emphasizing the seriousness of this flaw.

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 token introspection.
  • Configure the OAuthBearer authentication to explicitly validate the AUD claim and enable token introspection, rejecting any token with an unauthorized audience before granting access.
  • If an immediate upgrade is not possible, temporarily disable OAuthBearer authentication or restrict its use until the server is updated or misconfiguration corrected.

Generated by OpenCVE AI on November 16, 2026 at 17:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache james
Vendors & Products Apache
Apache james
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
Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Nov 16, 2026, 4:00 PM
Reserved
Dec 5, 2025, 3:03 PM
Status
Deferred
Published
Nov 6, 2026, 12:17 PM
Modified
Nov 16, 2026, 4:17 PM