{"id":"CVE-2026-40887","aliases":["GHSA-9pp3-53p2-ww9v"],"kind":"cve","tier":"cold","status":"published","title":"@vendure/core has a SQL Injection vulnerability","description":"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 query as defense in depth.","ai_summary":null,"severity":"critical","cvss":{"score":9.1,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"CNA"},"scores":[{"score":9.1,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"cna"}],"cwe":["CWE-89"],"remote":true,"remote_unauth":true,"epss":{"score":0.02202,"percentile":0.83241,"date":"2026-11-26"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"npm","name":"@vendure/core","affected":">= 3.0.0, < 3.5.7","fixed":["3.5.7","3.6.2","2.3.4"],"source":"osv"}],"affected_products":[{"vendor":"vendurehq","product":"vendure","versions":">= 3.0.0, < 3.5.7; >= 3.6.0, < 3.6.2; >= 1.7.4, < 2.3.4","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade @vendure/core to one of 3.5.7, 3.6.2, 2.3.4 (or later in the same release line).","technologies":[],"references":[{"url":"https://github.com/vendurehq/vendure/security/advisories/GHSA-9pp3-53p2-ww9v","kind":"vendor"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40887","kind":"vendor"},{"url":"https://github.com/vendurehq/vendure","kind":"other"}],"workarounds":null,"vendors":["vendurehq"],"products":["vendure"],"cpes":[],"published_at":"2026-04-14T22:38:01.000Z","modified_at":"2026-10-26T22:10:00.163Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40887"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-9pp3-53p2-ww9v","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2026-40887","markdown":"https://flawdb.com/CVE-2026-40887.md","json":"https://flawdb.com/api/v1/entries/CVE-2026-40887"}}