CVE-2026-25050
JSON

2.7low

Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy

Severity
2.7low CVSS:4.0 by GitHub_M
Exploit likelihood
0.40% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-6f65-4fv2-wwch

Description

Vendure is an open-source headless commerce platform. Prior to version 3.5.3, the `NativeAuthenticationStrategy.authenticate()` method is vulnerable to a timing attack that allows attackers to enumerate valid usernames (email addresses). 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 distinguish between existing and non-existing accounts. Version 3.5.3 fixes the issue.

Affected

Product or packageVersionsReported by
vendurehq vendure< 3.5.3CVE List
@vendure/core (npm)before 3.5.3GitHub Advisory Database
vendure vendurebefore 3.5.3NVD

All scores

GitHub_M2.7low CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
GitHublow CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Classification

CWE-202

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

Vendure is an open-source headless commerce platform. Prior to version 3.5.3, the `NativeAuthenticationStrategy.authenticate()` method is vulnerable to a timing attack that allows attackers to enumerate valid usernames (email addresses). 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 distinguish between existing and non-existing accounts. Version 3.5.3 fixes the issue.

GitHub Advisory Database
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.

NVD (es)

Vendure es una plataforma de comercio headless de código abierto. Antes de la versión 3.5.3, el método 'NativeAuthenticationStrategy.authenticate()' es vulnerable a un ataque de temporización que permite a los atacantes enumerar nombres de usuario válidos (direcciones de correo electrónico). En 'packages/core/src/config/auth/native-authentication-strategy.ts', el método authenticate devuelve inmediatamente si no se encuentra un usuario. La diferencia de temporización significativa (~200-400ms para bcrypt frente a ~1-5ms para una falla de DB) permite a los atacantes distinguir de forma fiable entre cuentas existentes y no existentes. La versión 3.5.3 corrige el problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-25050 changed 2026-01-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-6f65-4fv2-wwch changed 2026-02-03CC-BY-4.0
NVDCVE-2026-25050 changed 2026-06-17Public domain