Back to CVE catalog

AI summary

Vendure's Shop API places the languageCode query parameter directly into a raw SQL expression without parameterization or validation, in versions from 1.7.4 before 2.3.4, 3.5.7 and 3.6.2. An unauthenticated attacker can execute arbitrary SQL against PostgreSQL, MySQL/MariaDB or SQLite databases; the Admin API is also affected but requires authentication. Fixed in 2.3.4, 3.5.7 and 3.6.2.

Generated automatically from the source description. Check the sources below before acting.

CVE-2026-40887

Unauthenticated SQL Injection in Vendure Shop API prior to versions 2.3.4, 3.5.7, and 3.6.2

vendurehq vendure

At a glance

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.

Source description · CVE List / CNA

System impact

Attack complexityLow
ConfidentialityHigh
IntegrityNone
AvailabilityHigh

CVSS summary v3.1

9.1Critical
Published:
Updated:
EPSS:
1.762%
Exploited in attacks:
Not confirmed
Ransomware campaigns:
Not confirmed
Attack vector:
Network

Affected software

Vendor, product and affected version ranges.

Vendor, product and affected versions
Vendor:vendurehqvendureAffected versions:
>= 3.0.0, < 3.5.7Show full version range for vendure
>= 3.6.0, < 3.6.2>= 1.7.4, < 2.3.4

1–1 of 1 · Page 1 of 1

CVSS scores and metrics3
GitHub_M · CVE List / CNA (cna)Primary9.1 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
[email protected] · NVD (Secondary)9.1 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVE-2026-40887 · OSV (source-vector)9.1 / 10CriticalCVSS 3.1Details
Attack complexity
Low
Confidentiality
High
Integrity
None
Availability
High
Attack vector
Network
Privileges required
Not required
User interaction
Not required
Scope
Unchanged

Source vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

CVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.

Sources and advisories6

This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences