CVE-2026-25050: Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy
Summary The NativeAuthenticationStrategy.authenticate() method is vulnerable to a timing attack that allows attackers to enumerate valid usernames (email addresses). Details In packages/core/src/config/auth/native-authentication-strategy.ts, the authenticate method returns immediately if a user is not found: The significant timing difference (~200-400ms for bcrypt vs ~1-5ms for DB miss) allows attackers to reliably…
Published Jan 30, 2026
Affected packages
@vendure/core
- Ecosystem
- npm
- Affected
- < 3.5.3
- Fixed in
- 3.5.3
- Check
npm ls @vendure/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The NativeAuthenticationStrategy.authenticate() method is vulnerable to a timing attack that allows attackers to enumerate valid usernames (email addresses).
Details
In packages/core/src/config/auth/native-authentication-strategy.ts, the authenticate method returns immediately if a user is not found:
const user = await this.userService.getUserByEmailAddress(ctx, data.username);
if (!user) {
return false; // Instant return (~1-5ms)
}
const passwordMatch = await this.verifyUserPassword(ctx, user.id, data.password);
// Password check takes ~200-400ms with bcrypt (12 rounds)The significant timing difference (~200-400ms for bcrypt vs ~1-5ms for DB miss) allows attackers to reliably distinguish between existing and non-existing accounts.
Impact
- Attackers can enumerate valid user accounts
- Enables targeted brute-force or phishing attacks
- Information disclosure (account existence)
Recommended Fix
Perform a dummy bcrypt check when user is not found to ensure consistent response times.
References
- https://github.com/vendurehq/vendure/security/advisories/GHSA-6f65-4fv2-wwch
- https://nvd.nist.gov/vuln/detail/CVE-2026-25050
- https://github.com/vendurehq/vendure/commit/7f0c5556ecddb44a5d5208677a45fdd5923b0cc9
- https://github.com/vendurehq/vendure/releases/tag/v3.5.3
- https://github.com/advisories/GHSA-6f65-4fv2-wwch
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-63460
Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends
high7.5Sep 17, 2026CVE-2026-63461
Vendure: Shop API list queries can return non-public entities when filterOperator is OR
medium5.3Sep 17, 2026CVE-2026-63472
Vendure affected by external-authentication account takeover: external login linked to a pre-existing account by email without verification
critical9.1Sep 17, 2026CVE-2026-40887
@vendure/core has a SQL Injection vulnerability
critical9.1Apr 14, 2026
