{"id":"GHSA-6f65-4fv2-wwch","summary":"Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy","details":"### Summary\nThe `NativeAuthenticationStrategy.authenticate()` method is vulnerable to a timing attack that allows attackers to enumerate valid usernames (email addresses).\n\n### Details\nIn `packages/core/src/config/auth/native-authentication-strategy.ts`, the authenticate method returns immediately if a user is not found:\n\n```typescript\nconst user = await this.userService.getUserByEmailAddress(ctx, data.username);\nif (!user) {\n    return false; // Instant return (~1-5ms)\n}\nconst passwordMatch = await this.verifyUserPassword(ctx, user.id, data.password);\n// Password check takes ~200-400ms with bcrypt (12 rounds)\n```\n\nThe significant timing difference (~200-400ms for bcrypt vs ~1-5ms for DB miss) allows attackers to reliably distinguish between existing and non-existing accounts.\n\n### Impact\n- Attackers can enumerate valid user accounts\n- Enables targeted brute-force or phishing attacks\n- Information disclosure (account existence)\n\n### Recommended Fix\nPerform a dummy bcrypt check when user is not found to ensure consistent response times.","aliases":["CVE-2026-25050"],"modified":"2026-02-03T03:03:38.760480Z","published":"2026-01-30T19:35:40Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-01-30T19:35:40Z","nvd_published_at":"2026-01-30T16:16:13Z","cwe_ids":["CWE-202"],"severity":"LOW"},"references":[{"type":"WEB","url":"https://github.com/vendurehq/vendure/security/advisories/GHSA-6f65-4fv2-wwch"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25050"},{"type":"WEB","url":"https://github.com/vendurehq/vendure/commit/7f0c5556ecddb44a5d5208677a45fdd5923b0cc9"},{"type":"PACKAGE","url":"https://github.com/vendurehq/vendure"},{"type":"WEB","url":"https://github.com/vendurehq/vendure/releases/tag/v3.5.3"}],"affected":[{"package":{"name":"@vendure/core","ecosystem":"npm","purl":"pkg:npm/%40vendure/core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}