SQL Injection in langchain-ai/langchain (langchain-ai langchain-ai/langchain)

CVE-2025-8709
HIGH 7.3

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 13 ()
State
PUBLISHED
Published
Updated
Assigner
@huntr_ai
NVD status
Deferred

Description

A SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.

Weaknesses (CWE)

  • CWE-89 — Improper Neutralization of Special Elements used in an SQL Command

References

Scores

VersionScoreVectorScored by
CVSS 3.0HIGH 7.3CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N@huntr_ai
CVSS 3.0HIGH 7.3CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:NNVD · security@huntr.dev (Secondary)

Advisories

European references

Affected products

ProductVersions
langchain-ai · langchain-ai/langchainaffected unspecified ≤ latest

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD