Home / vendurehq / vendure / CVE-2026-40887
CVE-2026-40887: is it exploited, and which versions of vendurehq vendure are affected and fixed?
CVE-2026-40887 is a SQL injection vulnerability in vendurehq vendure. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:08 UTC). Affected: @vendure/core from 3.0.0 before 3.5.7, @vendure/core from 3.6.0 before 3.6.2 and @vendure/core from 1.7.4 before 2.3.4 (GitHub advisory GHSA-9pp3-53p2-ww9v). Fixed in 3.5.7, 3.6.2 and 2.3.4 (GitHub advisory GHSA-9pp3-53p2-ww9v). Severity: Critical (9.1, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-40887?
@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 query as defense in depth.
From the CVE record by GitHub_M, last updated April 22, 2026, 13:41 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| vendurehq | vendure | >= 3.0.0, < 3.5.7 >= 3.6.0, < 3.6.2 >= 1.7.4, < 2.3.4 |
As the CVE record by GitHub_M states it, last updated April 22, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @vendure/core | >= 3.0.0, < 3.5.7 | 3.5.7 | GHSA-9pp3-53p2-ww9v |
| npm | @vendure/core | >= 3.6.0, < 3.6.2 | 3.6.2 | GHSA-9pp3-53p2-ww9v |
| npm | @vendure/core | >= 1.7.4, < 2.3.4 | 2.3.4 | GHSA-9pp3-53p2-ww9v |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2026. Summary: @vendure/core has a SQL Injection vulnerability.
How severe is CVE-2026-40887?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40887 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, April 22, 2026)
- EPSS
- 1.76% probability of exploitation activity in the next 30 days, percentile 78.7 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- https://github.com/vendurehq/vendure/security/advisories/GHSA-9pp3-53p2-ww9v x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 15, 2026
- Published
- April 21, 2026, 19:24 UTC
- CVE record updated
- April 22, 2026, 13:41 UTC by GitHub_M
- NVD
- Deferred, last modified October 26, 2026, 22:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 08:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect vendure?
- Sep 17, 2026CVE-2026-63459 vendurehq vendure: cross-site scripting (XSS)
- Sep 17, 2026CVE-2026-63461 vendurehq vendure: information disclosure
- Sep 17, 2026CVE-2026-63472 vendurehq vendure: authentication bypass (improper authentication)
- Sep 17, 2026CVE-2026-63460 vendurehq vendure: regular expression denial of service (ReDoS)
- Jul 30, 2026CVE-2026-67347 vendurehq vendure: incorrect authorization
- Jan 30, 2026CVE-2026-25050 vendurehq vendure: exposure of Sensitive Information Through Data Queries
Questions about CVE-2026-40887
Is CVE-2026-40887 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:08 UTC. FIRST's EPSS gives it a 1.76% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of vendurehq vendure are affected by CVE-2026-40887?
@vendure/core from 3.0.0 before 3.5.7, @vendure/core from 3.6.0 before 3.6.2 and @vendure/core from 1.7.4 before 2.3.4, per the GitHub advisory GHSA-9pp3-53p2-ww9v. The tables above give every range the sources list.
Which version fixes CVE-2026-40887?
3.5.7, 3.6.2 and 2.3.4, per the GitHub advisory GHSA-9pp3-53p2-ww9v. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-40887?
Critical (9.1, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40887?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.