# CVE-2026-73419: Auth.js OAuth provider-confusion in state/nonce/PKCE cookies

Source: https://junglewise.ai/threats/cve-2026-73419-auth-js-oauth-provider-confusion-in-state-nonce-pkce-cookies  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-08-12. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2026-73419 · Severity: medium · CVSS 6.8 · Published 2026-08-12

Auth.js is a widely-used authentication library used to add login features to web applications. The library stores security tokens (state, nonce, and PKCE verification codes) in cookies that are not tied to specific OAuth providers. This allows an attacker to trick an authentication system into linking their account to a victim's legitimate user account, enabling persistent unauthorized access. The vulnerability only affects systems supporting multiple login providers with account linking while logged in.

Technologies: [@auth/core (npm)](https://junglewise.ai/threats/technologies/auth-core), [next-auth (npm)](https://junglewise.ai/threats/technologies/next-auth). Vendors: [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-73419 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-73419 being exploited in the wild.

**How severe is CVE-2026-73419?** Medium severity, with a CVSS score of 6.8, published 12 August 2026.

**Which products and versions are affected?** @auth/core (npm) SEMVER:introduced=0,fixed=0.41.3; next-auth (npm) SEMVER:introduced=5.0.0-beta.1,fixed=5.0.0-beta.32.

**Is there a fix for CVE-2026-73419?** Yes. @auth/core (npm): upgrade to 0.41.3 or later; next-auth (npm): upgrade to 5.0.0-beta.32 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2026-73419?** Check whether you run @auth/core (npm) or next-auth (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- @auth/core (npm): upgrade to 0.41.3 or later

  ```sh
  npm install @auth/core@0.41.3
  ```

- next-auth (npm): upgrade to 5.0.0-beta.32 or later

  ```sh
  npm install next-auth@5.0.0-beta.32
  ```


## Technical details

Auth.js stores OAuth/OIDC anti-CSRF checks (state, nonce, and PKCE verifier) in global cookies without binding them to the originating provider. During callback processing, a check value created for one provider can be consumed by a different provider because the stored cookie is not verified against the callback provider's identity (provider ID, issuer, client ID, or redirect URI). The attack is a provider-confusion/mix-up attack requiring: (1) multiple OAuth/OIDC providers configured, (2) account linking allowed while logged in, (3) at least one provider's authorization request observable by an attacker, and (4) at least one target provider not enforcing PKCE. An attacker can then link their account at a target provider to a victim's user by intercepting and replaying checks. The fix binds OAuth check cookies to the specific provider/authorization flow that created them.

## Affected products

- Auth.js @auth/core <= 0.41.2
- Auth.js next-auth <= 4.24.14 and >= 5.0.0-beta.1, <= 5.0.0-beta.31

## Identifiers

- CVE-2026-73419
- GHSA-x445-f3h2-j279

## Timeline

- 2026-07-23: disclosed
- 2026-07-23: patched: @auth/core 0.41.3, next-auth 4.24.15 and 5.0.0-beta.32

## References

- [https://github.com/nextauthjs/next-auth/security/advisories/GHSA-x445-f3h2-j279](https://github.com/nextauthjs/next-auth/security/advisories/GHSA-x445-f3h2-j279)

## Related threats

- [Auth.js authentication check bypass on configuration error](https://junglewise.ai/threats/cve-2026-73421-auth-js-authentication-check-bypass-on-configuration-error)
- [Auth.js email normalizer homoglyph @ bypass in passwordless sign-in](https://junglewise.ai/threats/cve-2026-73420-auth-js-email-normalizer-homoglyph-bypass-in-passwordless-sign-in)
- [NextAuth.js provides authentication for Next.js. Prior to @auth/core 0.41.3 and next-auth 4.24.15 and 5.0.0-beta.32, the exported getToken()](https://junglewise.ai/threats/cve-2026-73418-auth-js-gettoken-exception-on-malformed-bearer-headers)
- [NextAuth.js email misdelivery via nodemailer address parser bug](https://junglewise.ai/threats/nextauth-js-email-misdelivery-via-nodemailer-address-parser-bug-6824743e)
- [NextAuth.js authentication bypass via mock user creation](https://junglewise.ai/threats/cve-2023-48309-nextauth-js-authentication-bypass-via-mock-user-creation)
