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 applicationsUpgrade @vendure/core to version 2.3.4, 3.5.7, 3.6.2 or higher.
@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.
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.