Search

Find a vulnerability

Search criteria Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.

    2 vulnerabilities by langchain4j

    CVE-2026-55405 (GCVE-0-2026-55405)

    Vulnerability from nvd – Published: 2026-07-10 20:33 – Updated: 2026-07-10 20:33
    VLAI
    Title
    LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector
    Summary
    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.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    Impacted products
    Vendor Product Version
    langchain4j langchain4j Affected: < 1.2.1-beta8
    Affected: >= 1.3.0-beta9, < 1.5.1-beta11
    Affected: >= 1.6.0-beta12, < 1.11.8-beta19
    Affected: >= 1.12.1-beta21, < 1.16.3-beta26
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "langchain4j",
              "vendor": "langchain4j",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.2.1-beta8"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.3.0-beta9, \u003c 1.5.1-beta11"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.6.0-beta12, \u003c 1.11.8-beta19"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.12.1-beta21, \u003c 1.16.3-beta26"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\u0027 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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 7.6,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-10T20:33:40.804Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/13a0698bdfaf105d8aaf0367881df51358596219",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/13a0698bdfaf105d8aaf0367881df51358596219"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/1bc1f60aa58ef5c3c1703caf73362482480351cf",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/1bc1f60aa58ef5c3c1703caf73362482480351cf"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/8805d5d128694302f1b0a2650174186862f669e7",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/8805d5d128694302f1b0a2650174186862f669e7"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/ce96291dfb243c7f6753b5d65c7a77914642314f",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/ce96291dfb243c7f6753b5d65c7a77914642314f"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/f14a10ce77e4ea1b8277f67d6a81f46abd7a5bc2",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/f14a10ce77e4ea1b8277f67d6a81f46abd7a5bc2"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/releases/tag/1.16.3",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/releases/tag/1.16.3"
            }
          ],
          "source": {
            "advisory": "GHSA-2mfg-cc43-9pcj",
            "discovery": "UNKNOWN"
          },
          "title": "LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-55405",
        "datePublished": "2026-07-10T20:33:40.804Z",
        "dateReserved": "2026-06-16T21:48:43.124Z",
        "dateUpdated": "2026-07-10T20:33:40.804Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-55405 (GCVE-0-2026-55405)

    Vulnerability from cvelistv5 – Published: 2026-07-10 20:33 – Updated: 2026-07-10 20:33
    VLAI
    Title
    LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector
    Summary
    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.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    Assigner
    Impacted products
    Vendor Product Version
    langchain4j langchain4j Affected: < 1.2.1-beta8
    Affected: >= 1.3.0-beta9, < 1.5.1-beta11
    Affected: >= 1.6.0-beta12, < 1.11.8-beta19
    Affected: >= 1.12.1-beta21, < 1.16.3-beta26
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "product": "langchain4j",
              "vendor": "langchain4j",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 1.2.1-beta8"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.3.0-beta9, \u003c 1.5.1-beta11"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.6.0-beta12, \u003c 1.11.8-beta19"
                },
                {
                  "status": "affected",
                  "version": "\u003e= 1.12.1-beta21, \u003c 1.16.3-beta26"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\u0027 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."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "LOW",
                "baseScore": 7.6,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "LOW",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L",
                "version": "3.1"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89: Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-10T20:33:40.804Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/langchain4j/langchain4j/security/advisories/GHSA-2mfg-cc43-9pcj"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/13a0698bdfaf105d8aaf0367881df51358596219",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/13a0698bdfaf105d8aaf0367881df51358596219"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/1bc1f60aa58ef5c3c1703caf73362482480351cf",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/1bc1f60aa58ef5c3c1703caf73362482480351cf"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/8805d5d128694302f1b0a2650174186862f669e7",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/8805d5d128694302f1b0a2650174186862f669e7"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/ce96291dfb243c7f6753b5d65c7a77914642314f",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/ce96291dfb243c7f6753b5d65c7a77914642314f"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/commit/f14a10ce77e4ea1b8277f67d6a81f46abd7a5bc2",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/commit/f14a10ce77e4ea1b8277f67d6a81f46abd7a5bc2"
            },
            {
              "name": "https://github.com/langchain4j/langchain4j/releases/tag/1.16.3",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/langchain4j/langchain4j/releases/tag/1.16.3"
            }
          ],
          "source": {
            "advisory": "GHSA-2mfg-cc43-9pcj",
            "discovery": "UNKNOWN"
          },
          "title": "LangChain4j: SQL injection via metadata filters in langchain4j-mariadb and langchain4j-pgvector"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-55405",
        "datePublished": "2026-07-10T20:33:40.804Z",
        "dateReserved": "2026-06-16T21:48:43.124Z",
        "dateUpdated": "2026-07-10T20:33:40.804Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }