{"id":"CVE-2026-25050","aliases":["GHSA-6f65-4fv2-wwch"],"url":"https://o3.security/vulnerability/CVE-2026-25050","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.","published":"2026-01-30T15:11:40.296Z","modified":"2026-08-12T03:51:14.747595210Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@vendure/core","fixedVersion":"3.5.3"}],"fix":{"url":"https://github.com/vendurehq/vendure/commit/7f0c5556ecddb44a5d5208677a45fdd5923b0cc9","label":"vendurehq/vendure@7f0c555"},"references":[{"type":"WEB","url":"https://github.com/vendurehq/vendure/releases/tag/v3.5.3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25050.json"},{"type":"ADVISORY","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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:14.747595210Z"}}