Approved changes feed: RSS · Atom

cpe:2.3:a:langchain-ai:langchain:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorLangchain Ai (95fad776-1fab-55af-bd3a-6177850e04d4)
ProductLangchain (3402d232-7cd5-52e9-9314-0d26cf64d976)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from gcve-enriched-dumps CVE data

PURL mappings

PURLSourceLast updated
No PURL mappings for this CPE yet.

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2026-44843 vulnerable 2026-06-08 08:05:11.327146 LangChain: Unsafe deserialization of attacker-controlled LangChain objects through overly broad `load()` allowlists
HIGH (8.2)
LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.85 and 1.3.3, LangChain contains older runtime code paths that deserialize run inputs, run outputs, or other application-controlled payloads using overly broad object allowlists. These paths may call load() with allowed_objects="all". This does not enable arbitrary Python object deserialization, but it does allow any trusted LangChain-serializable object to be revived, which is broader than these runtime paths require. As a result, attacker-supplied LangChain serialized constructor dictionaries may cause trusted runtime paths to instantiate classes with untrusted constructor arguments. This vulnerability is fixed in 0.3.85 and 1.3.3.
Published: 2026-05-26T19:47:35.328Z
Updated: 2026-05-27T14:07:03.564Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-40087 vulnerable 2026-06-08 08:01:19.871521 LangChain has incomplete f-string validation in prompt templates
MEDIUM (5.3)
LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.84 and 1.2.28, LangChain's f-string prompt-template validation was incomplete in two respects. First, some prompt template classes accepted f-string templates and formatted them without enforcing the same attribute-access validation as PromptTemplate. In particular, DictPromptTemplate and ImagePromptTemplate could accept templates containing attribute access or indexing expressions and subsequently evaluate those expressions during formatting. Second, f-string validation based on parsed top-level field names did not reject nested replacement fields inside format specifiers. In this pattern, the nested replacement field appears in the format specifier rather than in the top-level field name. As a result, earlier validation based on parsed field names did not reject the template even though Python formatting would still attempt to resolve the nested expression at runtime. This vulnerability is fixed in 0.3.84 and 1.2.28.
Published: 2026-04-09T19:34:55.198Z
Updated: 2026-04-14T14:48:03.160Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-34070 vulnerable 2026-06-08 07:59:11.736989 LangChain Core has Path Traversal vulnerabilites in legacy `load_prompt` functions
HIGH (7.5)
LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22, multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config dicts without validating against directory traversal or absolute path injection. When an application passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for templates, .json/.yaml for examples). This issue has been patched in version 1.2.22.
Published: 2026-03-31T02:01:49.320Z
Updated: 2026-03-31T18:04:59.283Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2026-26013 vulnerable 2026-06-08 07:53:20.717654 LangChain affected by SSRF via image_url token counting in ChatOpenAI.get_num_tokens_from_messages
LOW (3.7)
LangChain is a framework for building agents and LLM-powered applications. Prior to 1.2.11, the ChatOpenAI.get_num_tokens_from_messages() method fetches arbitrary image_url values without validation when computing token counts for vision-enabled models. This allows attackers to trigger Server-Side Request Forgery (SSRF) attacks by providing malicious image URLs in user input. This vulnerability is fixed in 1.2.11.
Published: 2026-02-10T21:51:07.741Z
Updated: 2026-02-11T21:26:34.029Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-68664 vulnerable 2026-06-08 07:41:21.584944 LangChain serialization injection vulnerability enables secret extraction in dumps/loads APIs
CRITICAL (9.3)
LangChain is a framework for building agents and LLM-powered applications. Prior to versions 0.3.81 and 1.2.5, a serialization injection vulnerability exists in LangChain's dumps() and dumpd() functions. The functions do not escape dictionaries with 'lc' keys when serializing free-form dictionaries. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in versions 0.3.81 and 1.2.5.
Published: 2025-12-23T22:47:44.084Z
Updated: 2025-12-24T14:40:58.427Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2025-65106 vulnerable 2026-06-08 07:39:20.718008 LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates
LangChain is a framework for building agents and LLM-powered applications. From versions 0.3.79 and prior and 1.0.0 to 1.0.6, a template injection vulnerability exists in LangChain's prompt template system that allows attackers to access Python object internals through template syntax. This vulnerability affects applications that accept untrusted template strings (not just template variables) in ChatPromptTemplate and related prompt template classes. This issue has been patched in versions 0.3.80 and 1.0.7.
Published: 2025-11-21T21:43:02.461Z
Updated: 2025-11-21T21:53:19.566Z
Reference links
Imported from gcve-enriched-dumps CVE data
CVE:CVE-2024-8309 vulnerable 2026-06-08 07:00:24.207673 SQL Injection in langchain-ai/langchain
MEDIUM (4.9)
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.
Published: 2024-10-29T12:50:13.198Z
Updated: 2025-10-15T12:50:40.456Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.