Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 7.7%top 7.9%

CVE-2026-40887: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in vendurehq vendure

0
Critical
VulnerabilityCVE-2026-40887cvecve-2026-40887cwe-89
Published: Tue Apr 21 2026 (04/21/2026, 19:24:59 UTC)
Source: CVE Database V5
Vendor/Project: vendurehq
Product: vendure

Description

Vendure versions prior to 2. 3. 4, 3. 5. 7, and 3. 6. 2 contain an unauthenticated SQL injection vulnerability in the Shop API due to unsafe interpolation of a user-controlled query string parameter. This allows attackers to execute arbitrary SQL commands on the database. The Admin API is also vulnerable but requires authentication for exploitation. Vendure has released patched versions that fix this by parameterizing queries and providing a hotfix that validates the languageCode input to block injection attempts.

CVSS v3.1

Score 9.1critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/29/2026, 11:37:21 UTC

Technical Analysis

CVE-2026-40887 is a critical SQL injection vulnerability in the Vendure headless commerce platform affecting versions >=1.7.4 and <2.3.4, >=3.0.0 and <3.5.7, and >=3.6.0 and <3.6.2. The vulnerability arises from direct interpolation of a user-controlled query string parameter into raw SQL without parameterization or validation, impacting all supported databases (PostgreSQL, MySQL/MariaDB, SQLite). The Shop API is vulnerable to unauthenticated exploitation, while the Admin API requires authentication. Vendure patched this issue in versions 2.3.4, 3.5.7, and 3.6.2 by converting the vulnerable SQL interpolation to parameterized queries and providing a hotfix that validates the languageCode input to prevent injection payloads.

Potential Impact

An attacker can exploit this vulnerability to execute arbitrary SQL commands on the backend database without authentication via the Shop API, potentially leading to data exposure and denial of service. The Admin API is also vulnerable but requires authentication to exploit. The vulnerability affects all supported database backends. The CVSS score of 9.1 indicates a critical severity with network attack vector, no privileges required, and high impact on confidentiality and availability.

Mitigation Recommendations

Vendure has released official patches in versions 2.3.4, 3.5.7, and 3.6.2 that fix this vulnerability by parameterizing SQL queries and validating inputs. Users should upgrade to one of these patched versions to fully remediate the issue. For those unable to upgrade immediately, Vendure provides a hotfix that replaces the getLanguageCode method to validate and sanitize the languageCode input, blocking injection payloads before they reach the database. Applying this hotfix is recommended as a temporary mitigation until upgrading is possible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-15T15:57:41.719Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e7d08b19fe3cd2cdf3fbb3

Added to database: 4/21/2026, 7:31:23 PM

Last enriched: 4/29/2026, 11:37:21 AM

Last updated: 6/4/2026, 3:42:57 PM

Views: 69

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses