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…

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 improper input validation and direct interpolation of user-controlled query parameters into SQL statements. The Admin API is also vulnerable but requires authentication for exploitation. The vulnerability affects all supported databases (PostgreSQL, MySQL/MariaDB, SQLite). Patched versions convert vulnerable SQL interpolation to parameterized queries and validate inputs to prevent injection.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 19:46:06 UTC

Technical Analysis

CVE-2026-40887 is a critical SQL injection vulnerability (CWE-89) in the Vendure headless commerce platform affecting versions >=1.7.4 and prior to 2.3.4, 3.5.7, and 3.6.2. The vulnerability arises from direct interpolation of a user-controlled query string parameter into raw SQL expressions without parameterization or validation, allowing unauthenticated attackers to execute arbitrary SQL commands against the database via the Shop API. The Admin API is also affected but requires authentication for exploitation. The vulnerability impacts all supported database backends. Vendure patched this by introducing parameterized queries and input validation in the specified versions. Additionally, a hotfix is provided that validates the languageCode input at the boundary using RequestContextService.getLanguageCode, dropping invalid inputs silently and defaulting to the channel's language to block injection payloads.

Potential Impact

Successful exploitation allows unauthenticated attackers to execute arbitrary SQL commands on the database via the Shop API, potentially leading to data exposure and denial of service. The Admin API is also vulnerable but requires authentication. The vulnerability affects all supported database backends, increasing the risk across deployments. The CVSS 3.1 score is 9.1 (critical), reflecting high impact on confidentiality and availability without requiring privileges or user interaction.

Mitigation Recommendations

Fixed versions 2.3.4, 3.5.7, and 3.6.2 contain official patches that convert vulnerable SQL interpolation to parameterized queries and validate inputs to prevent injection. Users are strongly advised to upgrade to these versions. For those unable to upgrade immediately, Vendure provides a hotfix that validates the languageCode input at the boundary, dropping invalid values silently and using the channel's default language instead, effectively blocking injection payloads before they reach the query. Applying this hotfix mitigates the vulnerability until an upgrade 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/21/2026, 7:46:06 PM

Last updated: 4/21/2026, 9:53:37 PM

Views: 4

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