GHSA-6f65-4fv2-wwch

Suggest an improvement
Source
https://github.com/advisories/GHSA-6f65-4fv2-wwch
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-6f65-4fv2-wwch/GHSA-6f65-4fv2-wwch.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6f65-4fv2-wwch
Aliases
Published
2026-01-30T19:35:40Z
Modified
2026-02-03T03:03:38.760480Z
Severity
  • 2.7 (Low) CVSS_V4 - CVSS: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 CVSS Calculator
Summary
Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy
Details

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.

Database specific
{
    "github_reviewed_at": "2026-01-30T19:35:40Z",
    "github_reviewed": true,
    "nvd_published_at": "2026-01-30T16:16:13Z",
    "severity": "LOW",
    "cwe_ids": [
        "CWE-202"
    ]
}
References

Affected packages

npm / @vendure/core

Package

Name
@vendure/core
View open source insights on deps.dev
Purl
pkg:npm/%40vendure/core

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.5.3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/01/GHSA-6f65-4fv2-wwch/GHSA-6f65-4fv2-wwch.json"