Skip to content
Heist/ feed
HighFix available

Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends

Type: advisorySource: OSV1 source record

### Summary > [!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** ```ts 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** ```ts case 'regex': return { clause: getRegexpClause(fie

Announced Source revision 1
Original source ↗

GHSA-jgm3-qmp2-c4p7

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:GHSA-jgm3-qmp2-c4p7

@vendure/core

Source reference: /affected/0/package/name

Affected versions
Not stated in this record
Fixed versions
3.6.5

Source reference: /affected/0/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "3.6.5"
          }
        ]
      }
    ],
    "package": {
      "name": "@vendure/core",
      "purl": "pkg:npm/%40vendure/core",
      "ecosystem": "npm"
    },
    "database_specific": {
      "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-jgm3-qmp2-c4p7/GHSA-jgm3-qmp2-c4p7.json",
      "last_known_affected_version_range": "<= 3.6.4"
    }
  }
]
Related CVEs
CVE-2026-63460

Source reference: /aliases

Publisher severity

high

Source reference: /database_specific/severity

Event
#17539 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement