Skip to content
MediumNews

LangChain path traversal bug adds to input validation woes in AI pipelines

Published
Record updated
View JSON

Summary

Cyera researchers report that LangChain and LangGraph contain input validation flaws that can expose sensitive enterprise data. A new path traversal flaw in LangChain, CVE-2026-34070 (CVSS 7.5), lets crafted input read arbitrary files from the host, potentially including configuration files and credentials. Two earlier flaws, CVE-2025-68664 (unsafe deserialization in LangChain) and CVE-2025-67644 (SQL injection in LangGraph's checkpointing), can expose API keys, environment variables, and stored conversation history.

Mitigation

The article states that the tools' maintainers have fixed all the flaws, and that the fixes must be applied immediately across integrations. The source does not give fixed version numbers. The mitigations it describes are enforcing allowlists for file access and restricting directory boundaries, avoiding unsafe deserialization methods and processing only validated data structures, and using parameterized queries with stronger input sanitization.