All items
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
All tracked items across vulnerabilities, news, research, incidents, and regulatory updates.
126 items
The LangSmith SDK's prompt pull methods (`pull_prompt` / `pull_prompt_commit` in Python, `pullPrompt` / `pullPromptCommit` in JS/TS) deserialize prompt manifests from the LangSmith Hub without distinguishing public prompts pulled by `owner/name` from prompts within the caller's own organization. A malicious or compromised publisher can supply manifests that instantiate LangChain objects with attacker-chosen constructor arguments, such as an LLM `base_url`, which can redirect traffic and expose prompts, credentials and other secrets, or alter model behavior.
Fix: The LangSmith SDK now blocks pulling public prompts by `owner/name` by default; callers must pass `dangerously_pull_public_prompt=True` (Python) or `dangerouslyPullPublicPrompt: true` (JS/TS) after reviewing the prompt…
GitHub Advisory DatabaseTeamPCP, the threat actor linked to a recent supply chain attack spree, compromised npm and PyPI packages from TanStack, UiPath, Mistral AI, OpenSearch and Guardrails AI in a new Mini Shai-Hulud campaign. The modified npm packages carry an obfuscated file, "router_init.js", that profiles the execution environment and runs a credential stealer targeting cloud providers, crypto wallets, AI tools, messaging apps and CI systems including GitHub Actions. The TanStack compromise, tracked as CVE-2026-45321 with a CVSS score of 9.6, affected 42 packages and 84 versions after attackers hijacked the project's "TanStack/router" workflow to publish malicious versions with valid SLSA provenance.
LangChain's older runtime code paths deserialize run inputs, run outputs, and other application-controlled payloads using overly broad allowlists, sometimes calling `load()` with `allowed_objects="all"`. Attacker-supplied LangChain serialized constructor dictionaries can therefore cause trusted classes to be instantiated with untrusted constructor arguments, when the application accepts untrusted structured input and preserves it in run data. A related `_is_lc_secret` validation bypass in the serialization layer provides an additional path to the same revival logic.
LangChain versions prior to 1.1.14 contain a flaw in the langchain-openai package's _url_to_size() helper, which get_num_tokens_from_messages uses for image token counting. The helper validates a URL against SSRF protections, then fetches it in a separate network operation with independent DNS resolution. An attacker-controlled hostname can resolve to a public IP during validation and to a private or localhost IP during the fetch, a TOCTOU / DNS rebinding window.
Fix: Fixed in 1.1.14.
LangChain's langchain-text-splitters, prior to 1.1.2, validated the initial URL in HTMLHeaderTextSplitter.split_text_from_url() but fetched it with requests.get() while redirects were enabled and never revalidated redirect targets. An attacker-controlled URL could therefore redirect to internal, localhost, or cloud metadata endpoints, bypassing SSRF protections. Exfiltration depends on the application: it is possible only if the returned Document contents are exposed back to the requester who supplied the URL.
The White House says it will work more closely with US AI firms to combat "industrial-scale campaigns" by foreign actors, principally based in China, that distill American AI technology. In an internal memo, Michael Kratsios, Director of Science and Technology Policy, outlined four steps: sharing information on tactics and actors, better coordinating with companies, developing best practices to identify, mitigate and remediate distillation, and exploring how to hold foreign actors accountable. The memo did not detail specific actions against foreign entities.
OX Security researchers reported a design weakness in Anthropic's Model Context Protocol (MCP) that enables arbitrary command execution on any system running a vulnerable MCP implementation, exposing user data, internal databases, API keys and chat histories. The flaw sits in unsafe defaults in how MCP configuration works over the STDIO transport, and it is present in Anthropic's official SDK across Python, TypeScript, Java and Rust, affecting more than 7,000 publicly accessible servers and software packages with over 150 million downloads. Anthropic declined to modify the protocol's architecture, and some vendors have issued patches while the reference implementation remains unaddressed.
langchain-openai versions before 1.1.14 validated image URLs for SSRF protection in `_url_to_size()`, then fetched them with a separate DNS resolution, leaving a DNS rebinding window where a hostname could resolve to a public IP during validation and a private or localhost IP during the fetch. The fetched body is passed only to Pillow's `Image.open()` and never returned or logged, so an attacker cannot exfiltrate data, though blind probing of internal hosts and ports may be possible.
Fix: Fixed in langchain-openai 1.1.14 (requires langchain-core >= 1.2.31). The fix replaces validate-then-fetch with `SSRFSafeSyncTransport` from langchain-core, which resolves DNS once, validates returned IPs against a…
LangChain Text Splitters before 1.1.2 has an SSRF bypass in HTMLHeaderTextSplitter.split_text_from_url(). The function validates only the initial URL with validate_safe_url() and then calls requests.get() with redirects enabled, so an attacker-controlled server can redirect the fetch to internal, localhost or cloud metadata endpoints such as AWS IMDSv1. Data exfiltration requires the application to return Document contents to the party that supplied the URL.
Fix: Fixed in langchain-text-splitters 1.1.2 (requires langchain-core >= 1.2.31), which replaces requests.get() with the SSRF-safe SSRFSafeSyncTransport from langchain-core that validates DNS results and pins connections on…
OX Security researchers report that the STDIO transport in Anthropic's MCP reference implementation lets client applications pass arbitrary commands to StdioServerParameters, which execute with the parent process's permissions, exposing systems to remote code execution. Anthropic, LangChain and FastMCP maintain this is by design and that client developers must sanitize MCP configurations. The researchers say they executed commands on six official services and took over thousands of public servers across more than 200 open-source GitHub projects.
The LangSmith SDK's output redaction controls, hideOutputs in JS and hide_outputs in Python, do not cover streaming token events. Each streamed chunk is recorded as a new_token event holding the raw token value, and the redaction pipeline only processes the inputs and outputs fields, never the events array. Applications that rely on output redaction to keep sensitive LLM output out of LangSmith still leak the full streamed content through run events. Both the JS and Python SDKs are affected.
The LangSmith JavaScript/TypeScript SDK (langsmith, versions <= 0.5.17) contains an incomplete prototype pollution fix in its vendored lodash set() utility. The baseAssignValue() guard blocks only the __proto__ key, so a path such as constructor.prototype can still reach Object.prototype through the createAnonymizer() API when an attacker controls keys in the processed data. The source states this pollutes all objects in the Node.js process and rates the issue Medium (CVSS ~5.6).
LangChain versions prior to 0.3.84 and 1.2.28 contain incomplete f-string prompt-template validation (CVE-2026-40087). DictPromptTemplate and ImagePromptTemplate accepted templates with attribute access or indexing expressions and evaluated them during formatting, and validation based on top-level field names did not reject nested replacement fields inside format specifiers.
Fix: Fixed in 0.3.84 and 1.2.28.
NVD/CVE DatabaseLangChain's f-string prompt-template validation was incomplete in two ways. DictPromptTemplate and ImagePromptTemplate accepted templates with attribute access or indexing expressions and evaluated them during formatting, and validation did not reject nested replacement fields inside format specifiers. Exposure needs untrusted template strings and richer Python objects passed into formatting.
Fix: LangChain now applies f-string safety validation consistently to DictPromptTemplate and ImagePromptTemplate, rejecting templates with attribute access or indexing during construction and deserialization.
Microsoft has released the Agent Governance Toolkit, an open-source project that monitors and controls AI agents during execution. It adds a runtime security layer that enforces policies against issues such as prompt injection and maps to OWASP's top 10 risks for agentic systems. The toolkit is in public preview under an MIT license, with components in Python, TypeScript, Rust, Go and .NET.
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.
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.
Cyera researchers disclosed three vulnerabilities in LangChain and LangGraph that could expose filesystem files, environment secrets and conversation history. CVE-2026-34070 is a path traversal in langchain_core/prompts/loading.py that reads arbitrary files via a crafted prompt template, CVE-2025-68664 is a deserialization flaw that leaks API keys and environment secrets, and CVE-2025-67644 is an SQL injection in the LangGraph SQLite checkpoint implementation.
The Trump administration signed a December executive order that restricts states' ability to regulate AI, directing federal agencies to sue states that try to do so and to withhold funds from them. The article argues the order serves industry lobbyists and undercuts consumer and advocacy efforts for state rules, despite polls showing over 70% of likely voters favor regulator involvement in AI policy. It expects AI to become a wedge issue in the upcoming midterm elections.
PyPI warned developers that two malicious LiteLLM versions, 1.82.7 and 1.82.8, were briefly published and carried a multi-stage payload that harvested credentials from developer environments, CI/CD pipelines and cloud configurations. Sonatype said the packages were live for roughly two hours before removal, and PyPI linked the incident to an exploited Trivy dependency in the ongoing TeamPCP supply-chain campaign.
Fix: LangChain will deprecate `RunnableWithMessageHistory`, `astream_log()` and `astream_events(version="v1")`, and applications should migrate to the currently recommended APIs, including the `stream` API.
GitHub Advisory DatabaseFix: Fixed in 1.1.2
Fix: To counter the threat, it's advised to block public IP access to sensitive services, monitor MCP tool invocations, run MCP-enabled services in a sandbox, treat external MCP configuration input as untrusted, and only…
The Hacker NewsFix: Fixed in 0.5.18.
Fix: 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.
CSO OnlineFix: CVE-2026-34070 - langchain-core >=1.2.22; CVE-2025-68664 - langchain-core 0.3.81 and 1.2.5; CVE-2025-67644 - langgraph-checkpoint-sqlite 3.0.1.
The Hacker NewsFix: PyPI said anyone who installed and ran the project should assume credentials available to the LiteLLM environment may have been exposed and should revoke and rotate them accordingly.
CSO Online