SCA: security update for better-auth (GHSA-p6v2-xcpg-h6xw)

high Tenable Cloud Security Plugin ID 441983

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- Better Auth is an authentication and authorization library for TypeScript. Prior to 1.4.17 and
1.5.0-beta.9, Better Auth's HTTP rate limiter keyed each request by the exact textual IP address it
received in x-forwarded-for (or the configured IP-bearing header). IPv6 clients controlling a typical /64
allocation could rotate through 2^64 distinct source addresses without exhausting the per-address counter,
defeating rate limiting on /sign-in/email, /sign-up/email, /forget-password, and every other path the
limiter protects. The same bug allowed a single client to vary the textual encoding of one IPv6 address
(uppercase, compression, IPv4-mapped, hex-encoded IPv4-in-IPv6) and produce multiple distinct keys. This
vulnerability is fixed in 1.4.17 and 1.5.0-beta.9. (CVE-2026-45364)

Solution

Update the better-auth library and its related packages to version 1.4.17 or later.

See Also

https://github.com/advisories/GHSA-p6v2-xcpg-h6xw

Plugin Details

Severity: High

ID: 441983

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 5/15/2026

Updated: 6/1/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Low

Score: 2.8

Percentile: 22.6

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2026-45364

CVSS v3

Risk Factor: High

Base Score: 7.3

Temporal Score: 6.4

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 5/15/2026

Vulnerability Publication Date: 5/15/2026

Reference Information

CVE: CVE-2026-45364

cwe: CWE-307