Security mailing lists by PureSourceCode

CVE-2026-45337

HIGH 7.6CVSS 3.1

Better Auth: Device authorization approve and deny accept any authenticated session while the user code is pending

Better Auth is an authentication and authorization library for TypeScript. From 1.6.0 until 1.6.11, the deviceAuthorization plugin treats any authenticated session as the owner of any pending device code because GET /device does not claim the row and POST /device/approve and POST /device/deny short-circuit when userId is unset, allowing an authenticated attacker who learns a valid user_code to bind the polling device to the attacker's account or deny the legitimate flow. This issue is fixed in version 1.6.11.

Published
15 Jul 2026
Last modified
21 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-285CWE-345CWE-639CWE-863
Also known as
GHSA-cq3f-vc6p-68fh
Sources
NVDJSONOSV GHSA-cq3f-vc6p-68fhJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L
OSV GitHub CVSS 3.1 HIGH 7.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD better-auth better_auth
cpe:2.3:a:better-auth:better_auth:*:*:*:*:*:node.js:*:*
>= 1.6.0, < 1.6.11 1.6.11
OSV npm better-auth >= 1.6.0, < 1.6.11 1.6.11

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 15 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Jun 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.