@vendure/core has a SQL Injection vulnerability
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vendurehq | vendure | 3.0.0 to before 3.5.7; 3.6.0 to before 3.6.2; 1.7.4 to before 2.3.4 | 3.5.7, 3.6.2, 2.3.4 | Patch available | CNA |
| — | @vendure/core (npm) | 3.0.0 to before 3.5.7 | 3.5.7 | Patch available | GHSA-9pp3-53p2-ww9v |
| — | @vendure/core (npm) | 3.6.0 to before 3.6.2 | 3.6.2 | Patch available | GHSA-9pp3-53p2-ww9v |
| — | @vendure/core (npm) | 1.7.4 to before 2.3.4 | 2.3.4 | Patch available | GHSA-9pp3-53p2-ww9v |
- vendure Vendorvendurehq Affected 3.0.0 to before 3.5.7; 3.6.0 to before 3.6.2; 1.7.4 to before 2.3.4 Fixed in 3.5.7, 3.6.2, 2.3.4 Patch available CNA
- @vendure/core (npm) Vendor— Affected 3.0.0 to before 3.5.7 Fixed in 3.5.7 Patch available GHSA-9pp3-53p2-ww9v
- @vendure/core (npm) Vendor— Affected 3.6.0 to before 3.6.2 Fixed in 3.6.2 Patch available GHSA-9pp3-53p2-ww9v
- @vendure/core (npm) Vendor— Affected 1.7.4 to before 2.3.4 Fixed in 2.3.4 Patch available GHSA-9pp3-53p2-ww9v
Remediation
- Fix · CNA vendure (vendurehq) Fixed in 3.5.7, 3.6.2, 2.3.4
- Fix · GHSA-9pp3-53p2-ww9v @vendure/core (npm) Fixed in 3.5.7 Advisory →
- Fix · GHSA-9pp3-53p2-ww9v @vendure/core (npm) Fixed in 3.6.2 Advisory →
- Fix · GHSA-9pp3-53p2-ww9v @vendure/core (npm) Fixed in 2.3.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-40887
- 2026-10-03 Alias added: GHSA-9pp3-53p2-ww9v
References
More vendurehq vulnerabilities
- TI-2026-45233 Improper authentication in vendurehq vendure CVSS 3.1CRITICAL 9.1
- TI-2026-45227 Vendure: Stored XSS in the Admin Dashboard via unsafe HTML-stripping (innerHTML) of entity descriptions CVSS 3.1HIGH 8.7
- TI-2026-45228 Vendure: Unauthenticated ReDoS via `regex` filter on SQLite backends CVSS 3.1HIGH 7.5
- TI-2026-47643 Vendure 3.7.1 Cross-Channel Authorization Bypass via StockLocation and Asset Update CVSS 4.0MEDIUM 6.1
- TI-2026-45229 Vendure: Shop API list queries can return non-public entities when filterOperator is OR CVSS 3.1MEDIUM 5.3
Sources
- CVE-2026-40887 · CVE Program
- CVE-2026-40887 · NVD
- FIRST EPSS
- GHSA-9pp3-53p2-ww9v · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences