{"answers":{"affected":"16 open source packages ship an affected version, including dev.langchain4j:langchain4j-mariadb and dev.langchain4j:langchain4j-pgvector.","exploited":"There is no known exploitation of CVE-2026-55405 in the wild and no public exploit code.","fix":"Upgrade dev.langchain4j:langchain4j-mariadb to a fixed version for your release line: 1.2.1-beta8, 1.16.3-beta26, 1.5.1-beta11 or 1.11.8-beta19.","what":"CVE-2026-55405 is a high-severity SQL injection vulnerability in langchain4j, published on 10 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-55405 and fix it if it is affected.\n\nWhat it is: CVE-2026-55405 is a high-severity SQL injection vulnerability in langchain4j, published on 10 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-55405 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- dev.langchain4j:langchain4j-mariadb (Maven): affected all versions; fixed in 1.2.1-beta8\n- dev.langchain4j:langchain4j-mariadb (Maven): affected all versions; fixed in 1.2.1-beta8\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.12.1-beta21; fixed in 1.16.3-beta26\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.12.1-beta21; fixed in 1.16.3-beta26\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.3.0-beta9; fixed in 1.5.1-beta11\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.3.0-beta9; fixed in 1.5.1-beta11\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.6.0-beta12; fixed in 1.11.8-beta19\n- dev.langchain4j:langchain4j-mariadb (Maven): affected from 1.6.0-beta12; fixed in 1.11.8-beta19\n- dev.langchain4j:langchain4j-pgvector (Maven): affected all versions; fixed in 1.2.1-beta8\n- dev.langchain4j:langchain4j-pgvector (Maven): affected all versions; fixed in 1.2.1-beta8\n- dev.langchain4j:langchain4j-pgvector (Maven): affected from 1.12.1-beta21; fixed in 1.16.3-beta26\n- dev.langchain4j:langchain4j-pgvector (Maven): affected from 1.12.1-beta21; fixed in 1.16.3-beta26\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-55405/ (Markdown: https://insights.sbomify.com/CVE-2026-55405/index.md)","id":"CVE-2026-55405","markdown":"https://insights.sbomify.com/CVE-2026-55405/index.md","name":"CVE-2026-55405","record":{"aliases":["GHSA-2mfg-cc43-9pcj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","data_modify","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java LLM library","requires_auth":"low_privilege","summary":"Attackers can inject arbitrary SQL via crafted metadata filters in LangChain4j MariaDB and pgvector stores, enabling data exfiltration, modification, or denial of service.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"description":"LangChain4j is a Java library for building LLM-powered applications on the JVM. Prior to  1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, and 1.16.3-beta26, 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, enabling blind data exfiltration, denial of service via sleep functions, and deletion of arbitrary rows through removeAll(Filter). This issue is fixed in langchain4j-mariadb and langchain4j-pgvector versions 1.2.1-beta8, 1.5.1-beta11, 1.11.8-beta19, and 1.16.3-beta26.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector","id":"CVE-2026-55405","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"sql_injection","year":"2026"},"n_packages":16,"n_references":7,"next":{"headline":"Buffa: Use-After-Free in OwnedView via Unsound 'static Lifetime Promotion in Deref","id":"CVE-2026-55406"},"packages":[{"ecosystem":"Maven","fixed":["1.2.1-beta8"],"introduced":["0"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.2.1-beta8"],"introduced":["0"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":"pkg:maven/dev.langchain4j/langchain4j-mariadb","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.16.3-beta26"],"introduced":["1.12.1-beta21"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.16.3-beta26"],"introduced":["1.12.1-beta21"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":"pkg:maven/dev.langchain4j/langchain4j-mariadb","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.5.1-beta11"],"introduced":["1.3.0-beta9"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.5.1-beta11"],"introduced":["1.3.0-beta9"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":"pkg:maven/dev.langchain4j/langchain4j-mariadb","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.11.8-beta19"],"introduced":["1.6.0-beta12"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.11.8-beta19"],"introduced":["1.6.0-beta12"],"last_affected":[],"package":"dev.langchain4j:langchain4j-mariadb","purl":"pkg:maven/dev.langchain4j/langchain4j-mariadb","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.2.1-beta8"],"introduced":["0"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.2.1-beta8"],"introduced":["0"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":"pkg:maven/dev.langchain4j/langchain4j-pgvector","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.16.3-beta26"],"introduced":["1.12.1-beta21"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.16.3-beta26"],"introduced":["1.12.1-beta21"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":"pkg:maven/dev.langchain4j/langchain4j-pgvector","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.5.1-beta11"],"introduced":["1.3.0-beta9"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.5.1-beta11"],"introduced":["1.3.0-beta9"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":"pkg:maven/dev.langchain4j/langchain4j-pgvector","source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.11.8-beta19"],"introduced":["1.6.0-beta12"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":null,"source":"GHSA-2mfg-cc43-9pcj"},{"ecosystem":"Maven","fixed":["1.11.8-beta19"],"introduced":["1.6.0-beta12"],"last_affected":[],"package":"dev.langchain4j:langchain4j-pgvector","purl":"pkg:maven/dev.langchain4j/langchain4j-pgvector","source":"GHSA-2mfg-cc43-9pcj"}],"prev":{"headline":"yt-dlp: Downstream command injection via improper sanitization of yt-dlp --write-link output","id":"CVE-2026-55404"},"products":["langchain4j"],"published":"2026-07-10","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-13","vendors":["langchain4j"]},"summary":"Attackers can inject arbitrary SQL via crafted metadata filters in LangChain4j MariaDB and pgvector stores, enabling data exfiltration, modification, or denial of service.","url":"https://insights.sbomify.com/CVE-2026-55405/"}