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
semantic-router versions 0.1.8 through 0.1.14 declare litellm>=1.61.3 with no upper bound, so a fresh install during the window when litellm==1.82.8 was the latest PyPI release could resolve to a compromised wheel. That wheel ships litellm_init.pth, which runs on interpreter startup and exfiltrates environment variables, cloud and SSH credentials, and other secrets to https://models.litellm.cloud/.
Fix: Fixed in semantic-router 0.1.15, which raises the floor to litellm>=1.83.7. Workarounds: pin litellm>=1.83.7,!=1.82.8 in your own project, audit site-packages/ for litellm_init.pth and delete it if present, and rotate…
GitHub Advisory DatabaseThe langgraph-sdk builds HTTP request paths by interpolating caller-supplied identifier values into URL templates without sanitization. Identifiers containing URL-special characters can address a different resource or resource type than the call site indicates, potentially exposing, modifying or deleting resources beyond the caller's authorization scope.
Fix: The SDK now applies path-segment encoding to identifier values before interpolation into request URL templates. Applications should also validate identifier values (typically as UUIDs) at the boundary where untrusted…
LangGraph's JsonPlusSerializer can reconstruct Python objects from JSON checkpoint payloads, so an attacker with write access to checkpoint bytes at rest could potentially trigger code execution at checkpoint load time. The issue is classed as defense-in-depth: it is reachable only when an unauthorized party can modify the checkpoint store, and the team reports no evidence of exploitation in the wild. The default serializer in PostgresSaver, SqliteSaver and their async counterparts is JsonPlusSerializer, so applications generally fall in scope without opting in.
LangChain versions prior to 1.3.9 contain several components that resolve filesystem paths or expand search patterns without confining results to the intended root directory. The file-search agent middleware validates only the starting directory, so glob patterns and symlinks can reach files outside the configured root, and prompt and agent configuration loaders accept path fields without confinement or symlink rejection. When these components receive path values or search patterns influenced by an untrusted source, including an LLM acting on untrusted input, they can disclose files outside the intended boundary.
A vulnerability in BerriAI litellm up to version 1.82.2 affects the json.dumps function in litellm/proxy/management_endpoints/ui_sso.py, part of the SSO Debug Flow component. Manipulating this component can lead to missing authentication, and the attack can be executed remotely. The exploit has been publicly disclosed and may be used, and the vendor was contacted early about the disclosure.
A flaw in the LangSmith SDK's TracingMiddleware lets an attacker who can send HTTP requests to a server running it make that server read an arbitrary local file and upload the contents to LangSmith as a trace attachment. Retrieving the contents requires read access to the destination LangSmith workspace, and triggering the read may not require authentication, depending on deployment. The flaw combines an unvalidated tracing-propagation header field (CWE-346), a type check that never engages (CWE-843), and a path traversal read (CWE-22).
Fix: Upgrade the Python SDK to `>= 0.8.18`. Until upgrading, do not expose `TracingMiddleware` to untrusted HTTP traffic, and limit workspace trace-read access to trusted members.
GHSA-rcjh-r59h-gq37 describes an arbitrary file-read flaw in Langflow's Shareable Playground, also called Public Flows. Unauthenticated users can run a public flow through the /api/v1/build_public_tmp route, and its files field is read by Langflow and fed into the LLM. The file path can point to any path the storage supports, including a local file or an S3 path, depending on the flow configuration.
Several LangChain components resolve filesystem paths or expand search patterns without confining the resolved path to the intended root directory. Affected behaviors include a file-search agent middleware that does not check glob patterns or symlink targets, configuration loaders that accept unconfined path fields, and path-prefix checks that lack a path-segment boundary. When these receive path values or search patterns influenced by untrusted input, including an LLM acting on untrusted input, files outside the intended boundary can be disclosed.
Fix: The affected components will canonicalize candidate paths (resolving symlinks) and verify the resolved real path remains within the configured root, normalize search patterns so they cannot escape the root, confine…
LangGraph's `MongoDBSaver` in `@langchain/langgraph-checkpoint-mongodb` used `thread_id`, `checkpoint_ns` and `checkpoint_id` from `config.configurable` in MongoDB `find()` queries without strict type checks. Attacker-supplied operator objects such as `$gt` and `$ne` could be treated as query operators, letting them return checkpoints from other tenants, including state, metadata and pending writes.
Fix: Fixed in @langchain/langgraph-checkpoint-mongodb 1.3.1, which adds runtime validation for configurable checkpoint identifiers and rejects invalid values before query and write paths run. Upgrade to 1.3.1 or later.
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.
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 LangSmith Client SDKs, in JavaScript before 0.5.19 and Python before 0.7.31, fail to apply output redaction (hideOutputs / hide_outputs) to streaming token events. Each streamed chunk is recorded as a new_token event with its raw value, and the redaction functions prepareRunCreateOrUpdateInputs and _hide_run_outputs only process the inputs and outputs fields, never the events array. Applications that rely on output redaction therefore still store the full streamed LLM output in LangSmith.
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…
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.
Fix: The JSON deserialization path has been narrowed so that revival is restricted to default-constructor reconstruction using the args/kwargs carried in the payload.
GitHub Advisory DatabaseFix: Fixed in 1.3.9.
NVD/CVE DatabaseFix: 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 DatabaseFix: 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: Fixed in JavaScript SDK 0.5.19 and Python SDK 0.7.31.
NVD/CVE DatabaseFix: Fixed in 0.5.18.