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.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| nuclei | scan-template | CVE-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-14 | Package advisory GHSA-9pp3-53p2-ww9v |
| 2026-04-21 | Published |
| 2026-10-26 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 2.20% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed 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
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-63472 | 2026-09-17 | 9.1 | Vendure: External-authentication account takeover: external login linked to a pre-existing account by email without verification |
| CVE-2026-63461 | 2026-09-17 | 5.3 | Vendure: Shop API list queries can return non-public entities when filterOperator is OR |
| CVE-2026-63460 | 2026-09-17 | 7.5 | Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends |
| CVE-2026-25050 | 2026-01-30 | 5.3 | Vendure vulnerable to timing attack that enables user enumeration in NativeAuthenticationStrategy |
| CVE-2026-144417 | 2026-12-04 | 6.9 | JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql |
| CVE-2026-77432 | 2026-12-04 | 9.3 | activity_notification: SQL Injection via custom_filter in Bulk Notification Endpoints |
| CVE-2026-45262 | 2026-12-04 | 9.9 | FacturaScripts: Authenticated SQL injection in the REST API filter parameter via parenthesis bypass in `Where::sqlColumn` |
| CVE-2026-77398 | 2026-12-04 | 6.5 | LabelU: 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.