SQL Injection Affecting @vendure/core package, versions >=1.7.4 <2.3.4>=3.0.0-next.0 <3.5.7>=3.6.0 <3.6.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-VENDURECORE-16068909
  • published15 Apr 2026
  • disclosed14 Apr 2026
  • creditjacobfrantz1

Introduced: 14 Apr 2026

New CVE NOT AVAILABLE CWE-89  (opens in a new tab)

How to fix?

Upgrade @vendure/core to version 2.3.4, 3.5.7, 3.6.2 or higher.

Overview

@vendure/core is an A modern, headless ecommerce framework

Affected versions of this package are vulnerable to SQL Injection via the ProductService.findOneBySlug() function in Admin and Vendure Shop API. An attacker can execute arbitrary SQL commands on the database by supplying a crafted languageCode query parameter in API requests. This can lead to unauthorized access to sensitive data or disruption of service without requiring authentication or user interaction.

Workaround

This vulnerability can be mitigated by validating the languageCode input in the RequestContextService.getLanguageCode method to ensure it matches the expected format, thereby blocking injection payloads before they reach any query.

CVSS Base Scores

version 4.0
version 3.1