SCA: security update for better-auth (GHSA-hjpm-7mrm-26w8)

medium Tenable Self-Hosted Container Security Plugin ID 420995

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 version 1.1.21, the
application is vulnerable to an open redirect due to improper validation of the callbackURL parameter in
the email verification endpoint and any other endpoint that accepts callback url. While the server blocks
fully qualified URLs, it incorrectly allows scheme-less URLs. This results in the browser interpreting the
URL as a fully qualified URL, leading to unintended redirection. An attacker can exploit this flaw by
crafting a malicious verification link and tricking users into clicking it. Upon successful email
verification, the user will be automatically redirected to the attacker's website, which can be used for
phishing, malware distribution, or stealing sensitive authentication tokens. This CVE is a bypass of the
fix for GHSA-8jhw-6pjj-8723/CVE-2024-56734. Version 1.1.21 contains an updated patch. (CVE-2025-27143)

See Also

https://github.com/advisories/GHSA-hjpm-7mrm-26w8

Plugin Details

Severity: Medium

ID: 420995

Version: Revision 1.9

Type: Local

Family: SCA Checks

Published: 2/25/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Low

Score: 2.3

Percentile: 8.69

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: Medium

Base Score: 6.4

Temporal Score: 4.7

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

CVSS Score Source: CVE-2025-27143

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 2.7

Threat Vector: CVSS:4.0/E:U

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 2/24/2025

Vulnerability Publication Date: 2/24/2025

Reference Information

CVE: CVE-2025-27143

cwe: CWE-601