Intel

AIKIDO-2025-10956

@better-auth/sso is vulnerable to Improper Verification of Cryptographic Signature

Improper Verification of Cryptographic Signature Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Dec 15, 2025

30

Low Risk

This Affects:

JS@better-auth/sso
1.4.0 - 1.4.6
Fixed in 1.4.7
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to SAML signature validation bypass due to fallback parsing and response patching that accepted unsigned or forged assertions, where attackers could exploit this by crafting malicious SAML responses without valid signatures to gain unauthorized access, as the vulnerability stemmed from regex-based NameID extraction and status success patching in callbackSSOSAML and ACS endpoints that bypassed strict signature checks.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@better-auth/sso is vulnerable to Improper Verification of Cryptographic Signature in versions 1.4.0 - 1.4.6.

How to fix this

Upgrade the @better-auth/sso library to the patch version.