{"id":"CVE-2026-25050","aliases":["CVE-2026-25050","GHSA-6f65-4fv2-wwch"],"related":[],"kind":"vulnerability","state":"published","title":"Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-01-30T15:11:40.296Z","modified":"2026-06-17T10:24:02.637Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":2.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-202"],"affected":[{"ranges":[{"version":"< 3.5.3","status":"affected"}],"vendor":"vendurehq","product":"vendure","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.5.3"}],"ecosystem":"npm","package":"@vendure/core","purl":"pkg:npm/%40vendure/core","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.5.3"}],"vendor":"vendure","product":"vendure","cpe":"cpe:2.3:a:vendure:vendure:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vendurehq/vendure/security/advisories/GHSA-6f65-4fv2-wwch","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/vendurehq/vendure/releases/tag/v3.5.3","tags":["product","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25050","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vendurehq/vendure/commit/7f0c5556ecddb44a5d5208677a45fdd5923b0cc9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/vendurehq/vendure","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-01-30T15:45:23.480Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-25050","url":"https://www.cve.org/CVERecord?id=CVE-2026-25050","licence":"CVE Terms of Use","modified":"2026-01-30T15:45:50.463Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6f65-4fv2-wwch","url":"https://github.com/advisories/GHSA-6f65-4fv2-wwch","licence":"CC-BY-4.0","modified":"2026-02-03T03:03:38.760Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-25050","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25050","licence":"Public domain","modified":"2026-06-17T10:24:02.637Z"}],"updatedAt":"2026-11-25T22:59:13.320Z","epss":{"score":0.00396,"percentile":0.35948,"date":"2026-12-01T12:00:22.000Z"}}