KeygraphLabs · CVE MCP

CVE-2026-40887 · GitHub_M

@vendure/core has a SQL Injection vulnerability

Vendure is an open-source headless commerce platform. Starting in version 1.7.4 and prior to versions 2.3.4, 3.5.7, and 3.6.2, an unauthenticated SQL injection vulnerability exists in the Vendure Shop API. A user-controlled query string parameter is interpolated directly into a raw SQL expression without parameterization or validation, allowing an attacker to execute arbitrary SQL against the database. This affects all supported database backends (PostgreSQL, MySQL/MariaDB, SQLite). The Admin API is also affected, though exploitation there requires authentication. Versions 2.3.4, 3.5.7, and 3.6.2 contain a patch. For those who are unable to upgrade immediately, Vendure has made a hotfix available that uses `RequestContextService.getLanguageCode` to validate the `languageCode` input at the boundary. This blocks injection payloads before they can reach any query. The hotfix replaces the existing `getLanguageCode` method in `packages/core/src/service/helpers/request-context/request-context.service.ts`. Invalid values are silently dropped and the channel's default language is used instead. The patched versions additionally convert the vulnerable SQL interpolation to a parameterized...

Published 2026-04-21, last changed 2026-10-26. Weakness: CWE-89.

CVSS
9.1
critical, from the CNA
EPSS
1.76%
percentile 78.8%, chance of exploitation in 30 days
Exploitation
Public exploit
1 public reference

Public exploits

SourceKindReference
nucleiscan-templateCVE-2026-40887

How to fix

Upgrade to a fixed version: @vendure/core 2.3.4, 3.5.7, 3.6.2 (npm) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Where the flaw is in the code

Fixed in vendurehq/vendure by f593eb1849, f856fa561f, ff1d8e6353. The fix changed source code, but no function could be located in it. Regression tests: packages/testing/package.json. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).

Timeline

2026-04-14Package advisory GHSA-9pp3-53p2-ww9v
2026-04-21Published
2026-10-26Record last changed
2026-11-30EPSS when our history starts: 2.20%
2026-12-03Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-9pp3-53p2-ww9v@vendure/core (npm)3.5.7
GHSA-9pp3-53p2-ww9v@vendure/core (npm)3.6.2
GHSA-9pp3-53p2-ww9v@vendure/core (npm)2.3.4

Also known as: GHSA-9pp3-53p2-ww9v

Related

CVEPublishedCVSSSummary
CVE-2026-634722026-09-179.1Vendure: External-authentication account takeover: external login linked to a pre-existing account by email without verification
CVE-2026-634612026-09-175.3Vendure: Shop API list queries can return non-public entities when filterOperator is OR
CVE-2026-634602026-09-177.5Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends
CVE-2026-250502026-01-305.3Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy
CVE-2026-1444172026-12-046.9JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql
CVE-2026-774322026-12-049.3activity_notification: SQL Injection via custom_filter in Bulk Notification Endpoints
CVE-2026-452622026-12-049.9FacturaScripts: Authenticated SQL injection in the REST API filter parameter via parenthesis bypass in `Where::sqlColumn`
CVE-2026-773982026-12-046.5LabelU: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2026-40887, or call /api/v1/vulnerabilities/CVE-2026-40887. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org