SQL Injection Affecting dev.langchain4j:langchain4j-mariadb package, versions [1.2.0-beta8,1.2.1-beta8)[1.3.0-beta9,1.5.1-beta11)[1.6.0-beta12,1.11.8-beta19)[1.12.1-beta21,1.16.3-beta26)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.35% (27th percentile)

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-JAVA-DEVLANGCHAIN4J-17732673
  • published30 Jun 2026
  • disclosed17 Jun 2026
  • creditUnknown

Introduced: 17 Jun 2026

CVE-2026-55405  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade dev.langchain4j:langchain4j-mariadb to version 1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, 1.16.3-beta26 or higher.

Overview

Affected versions of this package are vulnerable to SQL Injection via the EmbeddingSearchRequest.filter process. An attacker can access sensitive data, modify or delete database records, or cause denial of service by injecting crafted input into metadata filter keys or values, which are improperly concatenated into SQL queries. This is only exploitable if untrusted or attacker-controlled metadata filter keys are allowed to reach the affected stores.

Workaround

This vulnerability can be mitigated by restricting filter keys to a known allow-list at the application layer and avoiding passing untrusted input as metadata filter keys.

CVSS Base Scores

version 4.0
version 3.1