Search
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
Words in any order find advisories, news and research. A package name finds its page. A CVE or GHSA identifier opens its advisory. With no words, the list holds every record.
98 items
Multiple functions in `langchain_core.prompts.loading` read files from paths in deserialized config dicts without checking for absolute paths or `..` traversal. When an application passes user-influenced prompt configurations to `load_prompt()` or `load_prompt_from_config()`, an attacker can read arbitrary host files, limited only by `.txt`, `.json`, `.yaml` and `.yml` extension checks.
Fix: Update `langchain-core` to >= 1.2.22. The fix rejects absolute paths and `..` sequences by default, with an `allow_dangerous_paths=True` argument for trusted inputs.
GitHub Advisory Databaselitellm 1.107.0, uploaded to PyPI on 2026-10-21, contains a credential stealer and a remote code execution backdoor that are absent from the upstream v1.107.0 git tag. The payload is installed through .pth files and runs at every Python interpreter start, without importing litellm, and sends harvested secrets to http://www.litellm.dev/healthcheck. The same mechanism appeared in litellm 1.82.7 and 1.82.8 (MAL-2026-2144), while releases 1.106.2 and 1.107.0rc1/rc2 are not affected.
Fix: Any environment where 1.107.0 was installed should be treated as compromised and its credentials rotated.
OSVA URL parameter injection flaw in LangSmith Studio, part of the langchain-ai/helm charts prior to version 0.12.71, could send an authenticated user's bearer token, user ID and workspace ID to an attacker-controlled server. The flaw affects both LangSmith Cloud and self-hosted deployments. Exploitation requires a victim to click a crafted link, and the stolen tokens expire after 5 minutes, though repeated attacks against the same user remain possible.
Fix: Fixed in 0.12.71, which requires user-defined allowed origins for the baseUrl parameter so tokens cannot be sent to unauthorized servers.
LangGraph's caching layer can deserialize attacker-controlled cache entries with pickle.loads when msgpack serialization fails. Before langgraph-checkpoint 4.0.0, BaseCache defaults to JsonPlusSerializer(pickle_fallback=True), so exploitation leads to remote code execution in the LangGraph process. Exploitation requires that caching is enabled and that the attacker can write to the cache backend, making it a post-compromise escalation vector.
Fix: Upgrade to langgraph-checkpoint>=4.0.0.
Prior to version 1.1.8, the `RecursiveUrlLoader` in `@langchain/community` contains a redirect-based SSRF bypass. The loader validates the initial URL but lets the underlying fetch follow redirects automatically, so a request can move from a safe public URL to an internal or metadata endpoint without revalidation. The flaw bypasses the SSRF protections introduced in 1.1.14 (CVE-2026-26019).
Fix: Upgrade `@langchain/community` to 1.1.18, which disables automatic redirects (`redirect: "manual"`), resolves and validates each 3xx `Location` target with `validateSafeUrl()` before the next request, and enforces a…
The @langchain/langgraph-checkpoint-redis package contains a RediSearch query injection flaw in the list() methods of RedisSaver and ShallowRedisSaver. Filter keys and values are interpolated without escaping, so an attacker controlling a filter value can inject an OR clause such as `}) | (@thread_id:{*` that matches all threads and bypasses thread isolation, exposing checkpoint data from other users in multi-tenant applications.
Fix: The 1.0.2 patch adds an escapeRediSearchTagValue() function that escapes RediSearch special characters and applies escaping to all filter keys before query construction.
CVE-2026-26019 affects the RecursiveUrlLoader class in @langchain/community before 1.1.14, a web crawler that follows links from a starting URL. Its default preventOutside check compares URLs with String.startsWith(), so an attacker controlling a crawled page can link to look-alike domains or internal infrastructure, and the crawler performs no validation against private or reserved IP addresses, including cloud metadata services, localhost, and RFC 1918 addresses.
CVE-2026-26013 affects LangChain before 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, so attackers can supply malicious image URLs in user input. This is classified as CWE-918, Server-Side Request Forgery (SSRF); NVD has not yet provided an assessment.
Fix: Fixed in 1.2.11
NVD/CVE DatabaseThe LangSmith SDK's distributed tracing feature is vulnerable to server-side request forgery through the baggage header. Before the fix, RunTree.from_headers() in Python and RunTree.fromHeaders() in TypeScript accepted attacker-supplied api_url and api_key values from baggage, and post() and patch() then sent run data, including LLM inputs and outputs, to those URLs.
Fix: Python: pip install langsmith>=0.6.3. JavaScript: npm install langsmith@>=0.4.6. The fix filters replica configurations to an allowlist of safe fields.
LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) flaw in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser runs a backtracking-prone regular expression when extracting tool actions from model output, so an attacker who can supply or influence the parsed text, for example through prompt injection in downstream applications that pass LLM output directly into the parser, can cause excessive CPU consumption and significant parsing delays.
LangChain JS versions of @langchain/core before 0.3.80 and 1.1.8, and of langchain before 0.3.37 and 1.2.3, contain a serialization injection flaw in the toJSON() method and in JSON.stringify() output. The method does not escape objects carrying the internal 'lc' key when serializing free-form kwargs data. User-controlled input containing that key structure is then treated as a legitimate LangChain object during deserialization instead of plain data.
Fix: Fixed in @langchain/core 0.3.80 and 1.1.8, and in langchain 0.3.37 and 1.2.3.
LangChain's dumps() and dumpd() functions do not escape dictionaries containing the 'lc' key when serializing free-form dictionaries. User-controlled data with this key structure is treated as a legitimate LangChain object during deserialization rather than plain data. The issue affects versions prior to 0.3.81 and 1.2.5.
This issue has been patched in versions 0.3.81 and 1.2.5.
LangGraph SQLite Checkpoint, an implementation of LangGraph CheckpointSaver backed by SQLite (sync and async via aiosqlite), is vulnerable to SQL injection in versions 3.0.0 and below. The _metadata_predicate() function interpolates metadata filter keys directly into f-strings without validation, so applications that accept untrusted filter keys in checkpoint search operations are exposed.
Fix: Fixed in version 3.0.1.
NVD/CVE DatabaseCVE-2025-65106 affects LangChain from versions 0.3.79 and prior and 1.0.0 to 1.0.6. A template injection flaw in its prompt template system lets attackers reach Python object internals through template syntax. The issue affects applications that accept untrusted template strings, not just template variables, in ChatPromptTemplate and related prompt template classes.
Fix: This issue has been patched in versions 0.3.80 and 1.0.7.
Prior to langgraph-checkpoint version 3.0, the JsonPlusSerializer used as the default checkpoint serializer contains a remote code execution flaw when deserializing payloads saved in the "json" mode. An attacker who can get the application to persist a crafted payload in that mode can run arbitrary Python code on load, and the fallback to "json" can be triggered when surrogate values make msgpack serialization fail.
Fix: Fixed in langgraph-checkpoint==3.0.0. Upgrade immediately to langgraph-checkpoint==3.0.0. For langgraph-api deployments, any version 0.5 or later is also free of this vulnerability.
LangGraph SQLite Checkpoint, the SQLite-backed implementation of LangGraph's CheckpointSaver (sync and async via aiosqlite), contains SQL injection flaws in versions prior to 2.0.11. The SQLite store builds queries by direct string concatenation without proper parameterization, letting an attacker inject arbitrary SQL and bypass access controls.
Fix: Fixed in 2.0.11.
NVD/CVE DatabaseA SQL injection flaw in the LangGraph SQLite store implementation in the langchain-ai/langchain repository affects langgraph-checkpoint-sqlite 2.0.10. Filter operators ($eq, $ne, $gt, $lt, $gte, $lte) are concatenated into SQL strings without parameterization, letting attackers inject arbitrary SQL. Successful exploitation grants unauthorized access to all documents, exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
CVE-2025-6985 affects the HTMLSectionSplitter class in langchain-text-splitters version 0.3.8. The class accepts arbitrary XSLT stylesheets and parses them with lxml.etree.parse() and lxml.etree.XSLT() without hardening, enabling XML External Entity (XXE) attacks. Remote attackers with no authentication, privileges or user interaction could read any file the LangChain process can reach, such as SSH keys, environment files, source code or cloud metadata, in default deployments that enable custom XSLT.
The EverNoteLoader component in langchain-ai/langchain version 0.3.63 is vulnerable to XML External Entity (XXE) attacks. It parses XML with etree.iterparse() without disabling external entity references, so a crafted XML payload that references local files can expose sensitive data such as /etc/passwd.
CVE-2025-46059 describes an indirect prompt injection flaw in the GmailToolkit component of langchain-ai v0.3.51. According to the description, a crafted email message can lead attackers to execute arbitrary code and compromise the application. The supplier disputes the entry, stating that the code-execution issue comes from user-written code that does not follow LangChain security practices.
Fix: Fixed in 1.1.14.