Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. dev.langchain4j/langchain4j-mariadb
  4. ›
  5. CVE-2026-55405

CVE-2026-55405: LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector

June 17, 2026 (updated July 16, 2026)

The MariaDB and pgvector embedding stores build metadata-filter SQL by string-concatenating filter keys (and, in MariaDB, string values) directly into the query without adequate escaping. A crafted metadata key in EmbeddingSearchRequest.filter() can break out of its SQL context and inject arbitrary SQL into the statements executed by the stores’ search and removeAll(Filter) operations.

References

  • github.com/advisories/GHSA-2mfg-cc43-9pcj
  • github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj
  • nvd.nist.gov/vuln/detail/CVE-2026-55405

Code Behaviors & Features

Detect and mitigate CVE-2026-55405 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.2.1-beta8, all versions starting from 1.3.0-beta9 before 1.5.1-beta11, all versions starting from 1.6.0-beta12 before 1.11.8-beta19, all versions starting from 1.12.1-beta21 before 1.16.3-beta26

Fixed versions

  • 1.2.1-beta8
  • 1.5.1-beta11
  • 1.11.8-beta19
  • 1.16.3-beta26

Solution

Upgrade to versions 1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, 1.16.3-beta26 or above.

Impact 7.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/dev.langchain4j/langchain4j-mariadb/CVE-2026-55405.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:05 +0000.