Description
@better-auth/oauth-provider before 1.7.0-beta.4 fails to bind access-token audience to the authorization grant, allowing clients to request tokens for unrelated resources. Attackers can complete an OAuth flow and obtain access tokens whose audience targets resource servers the authorization never covered, bypassing intended authorization boundaries.
Published: 2026-08-01
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows an attacker to request an OAuth access token for any audience, regardless of the authorization grant originally issued. As a result, a malicious client can obtain tokens that target protected resource servers the user never approved, effectively bypassing the intended scope of access. This creates an Authorization Bypass scenario, permitting the potential acquisition of unauthorized data or services that should be restricted.; The weakness originates from the failure to bind the access‑token audience to the original authorization grant, as identified by CWE‑285. The impact is confined to the authorization layer; it does not provide direct remote code execution or system compromise but allows wide unauthorized access to resources.

Affected Systems

The affected product is better‑auth/oauth‑provider. Any installation of this library version prior to 1.7.0‑beta.4 is vulnerable. All versions that have not applied the public fix are potentially impacted until a later patch is installed.

Risk and Exploitability

The CVSS score of 5.3 reflects moderate severity, with an exploit likelihood that is uncertain due to the lack of an EPSS score and its absence from the KEV catalog. The attack presumably requires that a client is able to complete an OAuth flow against a legitimate authorization server that hosts the vulnerable provider; no privilege escalation beyond the OAuth client is required. If a user authorizes a client, the attacker can redirect the token issuance and obtain a token for an unrelated audience, thus bypassing authorization boundaries. The absence of an EPSS score indicates no publicly known exploitation at the time of analysis. Users should therefore consider the attack vector likely via legitimate OAuth channels and mitigate promptly.

Generated by OpenCVE AI on August 2, 2026 at 03:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade better‑auth/oauth‑provider to version 1.7.0‑beta.4 or later, which includes the published binding fix.
  • If an upgrade is not immediately feasible, enforce strict audience validation in the application logic to reject tokens whose audience does not match the intended resource server.
  • Regenerate or revoke all existing access tokens after upgrading, and audit OAuth client registrations to ensure they cannot request unrestricted audiences.

Generated by OpenCVE AI on August 2, 2026 at 03:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sat, 01 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
First Time appeared Better-auth oauth-provider
Vendors & Products Better-auth oauth-provider

Sat, 01 Aug 2026 12:45:00 +0000

Type Values Removed Values Added
Description @better-auth/oauth-provider before 1.7.0-beta.4 fails to bind access-token audience to the authorization grant, allowing clients to request tokens for unrelated resources. Attackers can complete an OAuth flow and obtain access tokens whose audience targets resource servers the authorization never covered, bypassing intended authorization boundaries.
Title @better-auth/oauth-provider before 1.7.0-beta.4 Authorization Bypass
First Time appeared Better-auth
Better-auth better-auth\/oauth-provider
Weaknesses CWE-285
CPEs cpe:2.3:a:better-auth:better-auth\/oauth-provider:*:*:*:*:*:node.js:*:*
Vendors & Products Better-auth
Better-auth better-auth\/oauth-provider
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Better-auth Better-auth\/oauth-provider Oauth-provider
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-03T18:32:02.559Z

Reserved: 2026-07-29T13:07:47.015Z

Link: CVE-2026-67332

cve-icon Vulnrichment

Updated: 2026-08-03T18:31:58.119Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T03:15:03Z

Weaknesses