Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:pypi/langchain@0.0.202
purl pkg:pypi/langchain@0.0.202
Next non-vulnerable version 0.3.1
Latest non-vulnerable version 0.3.30
Risk 4.5
Vulnerabilities affecting this package (21)
Vulnerability Summary Fixed by
VCID-23um-cqks-tkc5
Aliases:
CVE-2024-8309
GHSA-45pg-36p6-83v9
PYSEC-2024-115
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain-community 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.
0.2.0
Affected by 3 other vulnerabilities.
VCID-2cuv-kudj-c3cg
Aliases:
CVE-2023-39659
GHSA-prgp-w7vf-ch62
PYSEC-2023-147
An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.
0.0.233
Affected by 20 other vulnerabilities.
0.0.325
Affected by 8 other vulnerabilities.
VCID-2cyy-g843-9qec
Aliases:
CVE-2023-34541
GHSA-6643-h7h5-x9wh
PYSEC-2023-92
Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.
0.0.247
Affected by 12 other vulnerabilities.
VCID-52vp-m7t5-hqas
Aliases:
CVE-2023-39631
GHSA-f73w-4m7g-ch9x
PYSEC-2023-162
PYSEC-2023-163
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.
0.0.308
Affected by 9 other vulnerabilities.
VCID-5977-kuku-ebek
Aliases:
CVE-2023-36188
GHSA-57fc-8q82-gfp3
PYSEC-2023-109
An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.
0.0.236
Affected by 18 other vulnerabilities.
0.0.247
Affected by 12 other vulnerabilities.
VCID-7teg-apyx-47dv
Aliases:
CVE-2024-3095
GHSA-q25c-c977-4cmh
Server-Side Request Forgery in langchain A Server-Side Request Forgery (SSRF) vulnerability exists in the Web Research Retriever component of langchain-ai/langchain version 0.1.5. The vulnerability arises because the Web Research Retriever does not restrict requests to remote internet addresses, allowing it to reach local addresses. This flaw enables attackers to execute port scans, access local services, and in some scenarios, read instance metadata from cloud environments. The vulnerability is particularly concerning as it can be exploited to abuse the Web Explorer server as a proxy for web attacks on third parties and interact with servers in the local network, including reading their response data. This could potentially lead to arbitrary code execution, depending on the nature of the local services. The vulnerability is limited to GET requests, as POST requests are not possible, but the impact on confidentiality, integrity, and availability is significant due to the potential for stolen credentials and state-changing interactions with internal APIs.
0.1.6
Affected by 5 other vulnerabilities.
VCID-964p-24u8-yucb
Aliases:
CVE-2024-2965
GHSA-3hjh-jh2h-vrg6
PYSEC-2024-118
A Denial-of-Service (DoS) vulnerability exists in the `SitemapLoader` class of the `langchain-ai/langchain` repository, affecting all versions. The `parse_sitemap` method, responsible for parsing sitemaps and extracting URLs, lacks a mechanism to prevent infinite recursion when a sitemap URL refers to the current sitemap itself. This oversight allows for the possibility of an infinite loop, leading to a crash by exceeding the maximum recursion depth in Python. This vulnerability can be exploited to occupy server socket/port resources and crash the Python process, impacting the availability of services relying on this functionality.
0.2.5
Affected by 2 other vulnerabilities.
VCID-9d9u-r5kk-6fa4
Aliases:
CVE-2023-38896
GHSA-92j5-3459-qgp4
PYSEC-2023-146
An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.
0.0.236
Affected by 18 other vulnerabilities.
VCID-a1d1-7vfp-xfef
Aliases:
CVE-2023-32785
GHSA-8h5w-f6q9-wg35
Langchain SQL Injection vulnerability In Langchain before 0.0.247, prompt injection allows execution of arbitrary code against the SQL service provided by the chain.
0.0.247
Affected by 12 other vulnerabilities.
VCID-a2h3-qgax-qbdr
Aliases:
CVE-2023-36258
GHSA-2qmj-7962-cjq8
PYSEC-2023-98
An issue in langchain v.0.0.199 allows an attacker to execute arbitrary code via the PALChain in the python exec method.
0.0.247
Affected by 12 other vulnerabilities.
VCID-ayhd-z87z-jkbq
Aliases:
CVE-2023-36095
GHSA-gwqq-6vq7-5j86
PYSEC-2023-138
An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.
0.0.236
Affected by 18 other vulnerabilities.
VCID-b4wr-u39k-gkd3
Aliases:
CVE-2024-3571
GHSA-rgp8-pm28-3759
langchain vulnerable to path traversal langchain-ai/langchain is vulnerable to path traversal due to improper limitation of a pathname to a restricted directory ('Path Traversal') in its LocalFileStore functionality. An attacker can leverage this vulnerability to read or write files anywhere on the filesystem, potentially leading to information disclosure or remote code execution. The issue lies in the handling of file paths in the mset and mget methods, where user-supplied input is not adequately sanitized, allowing directory traversal sequences to reach unintended directories.
0.0.353
Affected by 7 other vulnerabilities.
VCID-ctus-n9fc-gqhu
Aliases:
CVE-2023-36189
GHSA-7q94-qpjr-xpgm
PYSEC-2023-110
SQL injection vulnerability in langchain v.0.0.64 allows a remote attacker to obtain sensitive information via the SQLDatabaseChain component.
0.0.247
Affected by 12 other vulnerabilities.
VCID-dv6m-m6rf-4qa9
Aliases:
CVE-2023-36281
GHSA-7gfq-f96f-g85j
PYSEC-2023-151
An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the load_prompt parameter.
0.0.312
Affected by 9 other vulnerabilities.
VCID-exkd-sryf-e3ad
Aliases:
CVE-2023-38860
GHSA-fj32-q626-pjjc
PYSEC-2023-145
An issue in LangChain v.0.0.231 allows a remote attacker to execute arbitrary code via the prompt parameter.
0.0.247
Affected by 12 other vulnerabilities.
VCID-fdk5-mhqa-mqgw
Aliases:
CVE-2024-7042
GHSA-6m59-8fmv-m5f9
PYSEC-2024-114
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits 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.
0.3.1
Affected by 0 other vulnerabilities.
VCID-hdc6-zar9-zkf2
Aliases:
CVE-2024-5998
GHSA-f2jm-rw3h-6phg
LangChain pickle deserialization of untrusted data A vulnerability in the `FAISS.deserialize_from_bytes` function of langchain-ai/langchain allows for pickle deserialization of untrusted data. This can lead to the execution of arbitrary commands via the `os.system` function. The issue affects versions prior to 0.2.10.
0.2.10
Affected by 1 other vulnerability.
VCID-j2kj-2axx-rqgr
Aliases:
CVE-2023-34540
GHSA-x32c-59v5-h7fg
PYSEC-2023-91
Langchain 0.0.171 is vulnerable to Arbitrary Code Execution.
0.0.225
Affected by 20 other vulnerabilities.
VCID-m5uw-4tqc-3ub8
Aliases:
CVE-2024-28088
GHSA-h59x-p739-982c
PYSEC-2024-43
PYSEC-2024-45
LangChain through 0.1.10 allows ../ directory traversal by an actor who is able to control the final part of the path parameter in a load_chain call. This bypasses the intended behavior of loading configurations only from the hwchase17/langchain-hub GitHub repository. The outcome can be disclosure of an API key for a large language model online service, or remote code execution.
0.0.339
Affected by 8 other vulnerabilities.
0.1.11
Affected by 4 other vulnerabilities.
VCID-mrfe-fcyn-1qg8
Aliases:
CVE-2023-46229
GHSA-655w-fm8m-m478
PYSEC-2023-205
LangChain before 0.0.317 allows SSRF via document_loaders/recursive_url_loader.py because crawling can proceed from an external server to an internal server.
0.0.317
Affected by 8 other vulnerabilities.
VCID-u29a-rxyq-aubh
Aliases:
CVE-2024-0243
GHSA-h9j7-5xvc-qhg5
PYSEC-2024-235
With the following crawler configuration: ```python from bs4 import BeautifulSoup as Soup url = "https://example.com" loader = RecursiveUrlLoader( url=url, max_depth=2, extractor=lambda x: Soup(x, "html.parser").text ) docs = loader.load() ``` An attacker in control of the contents of `https://example.com` could place a malicious HTML file in there with links like "https://example.completely.different/my_file.html" and the crawler would proceed to download that file as well even though `prevent_outside=True`. https://github.com/langchain-ai/langchain/blob/bf0b3cc0b5ade1fb95a5b1b6fa260e99064c2e22/libs/community/langchain_community/document_loaders/recursive_url_loader.py#L51-L51 Resolved in https://github.com/langchain-ai/langchain/pull/15559
0.1.0
Affected by 6 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-06T05:28:46.913241+00:00 GitLab Importer Affected by VCID-23um-cqks-tkc5 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-8309.yml 38.6.0
2026-06-06T05:22:34.906832+00:00 GitLab Importer Affected by VCID-hdc6-zar9-zkf2 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-5998.yml 38.6.0
2026-06-06T05:04:24.361370+00:00 GitLab Importer Affected by VCID-7teg-apyx-47dv https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-3095.yml 38.6.0
2026-06-06T05:04:18.008298+00:00 GitLab Importer Affected by VCID-964p-24u8-yucb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-2965.yml 38.6.0
2026-06-06T04:49:37.292813+00:00 GitLab Importer Affected by VCID-b4wr-u39k-gkd3 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-3571.yml 38.6.0
2026-06-06T04:43:44.211052+00:00 GitLab Importer Affected by VCID-m5uw-4tqc-3ub8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-28088.yml 38.6.0
2026-06-06T04:41:32.736746+00:00 GitLab Importer Affected by VCID-u29a-rxyq-aubh https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2024-0243.yml 38.6.0
2026-06-06T04:15:03.501777+00:00 GitLab Importer Affected by VCID-a1d1-7vfp-xfef https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-32785.yml 38.6.0
2026-06-06T04:14:34.720993+00:00 GitLab Importer Affected by VCID-mrfe-fcyn-1qg8 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-46229.yml 38.6.0
2026-06-06T04:04:44.199660+00:00 GitLab Importer Affected by VCID-52vp-m7t5-hqas https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-39631.yml 38.6.0
2026-06-06T04:03:13.888859+00:00 GitLab Importer Affected by VCID-dv6m-m6rf-4qa9 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-36281.yml 38.6.0
2026-06-06T04:02:33.779552+00:00 GitLab Importer Affected by VCID-2cuv-kudj-c3cg https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-39659.yml 38.6.0
2026-06-06T04:02:28.368866+00:00 GitLab Importer Affected by VCID-exkd-sryf-e3ad https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-38860.yml 38.6.0
2026-06-06T04:02:19.632648+00:00 GitLab Importer Affected by VCID-9d9u-r5kk-6fa4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-38896.yml 38.6.0
2026-06-06T04:00:56.989069+00:00 GitLab Importer Affected by VCID-ayhd-z87z-jkbq https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-36095.yml 38.6.0
2026-06-06T03:54:47.040520+00:00 GitLab Importer Affected by VCID-ctus-n9fc-gqhu https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-36189.yml 38.6.0
2026-06-06T03:53:38.228543+00:00 GitLab Importer Affected by VCID-a2h3-qgax-qbdr https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-36258.yml 38.6.0
2026-06-06T03:51:31.281875+00:00 GitLab Importer Affected by VCID-2cyy-g843-9qec https://gitlab.com/gitlab-org/advisories-community/-/blob/main/pypi/langchain/CVE-2023-34541.yml 38.6.0
2026-06-05T17:04:17.966970+00:00 PyPI Importer Affected by VCID-23um-cqks-tkc5 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:04:16.944460+00:00 PyPI Importer Affected by VCID-fdk5-mhqa-mqgw https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:03:48.982051+00:00 PyPI Importer Affected by VCID-964p-24u8-yucb https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:03:41.448640+00:00 PyPI Importer Affected by VCID-m5uw-4tqc-3ub8 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:03:10.205101+00:00 PyPI Importer Affected by VCID-mrfe-fcyn-1qg8 https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:59.455703+00:00 PyPI Importer Affected by VCID-52vp-m7t5-hqas https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:55.987139+00:00 PyPI Importer Affected by VCID-exkd-sryf-e3ad https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:55.527824+00:00 PyPI Importer Affected by VCID-2cuv-kudj-c3cg https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:54.323218+00:00 PyPI Importer Affected by VCID-ayhd-z87z-jkbq https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:48.183706+00:00 PyPI Importer Affected by VCID-5977-kuku-ebek https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:47.707157+00:00 PyPI Importer Affected by VCID-ctus-n9fc-gqhu https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:46.905133+00:00 PyPI Importer Affected by VCID-a2h3-qgax-qbdr https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:45.308043+00:00 PyPI Importer Affected by VCID-2cyy-g843-9qec https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-05T17:02:44.839076+00:00 PyPI Importer Affected by VCID-j2kj-2axx-rqgr https://osv-vulnerabilities.storage.googleapis.com/PyPI/all.zip 38.6.0
2026-06-02T04:22:28.773003+00:00 Pypa Importer Affected by VCID-23um-cqks-tkc5 https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2024-115.yaml 38.6.0
2026-06-02T04:22:26.361867+00:00 Pypa Importer Affected by VCID-fdk5-mhqa-mqgw https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2024-114.yaml 38.6.0
2026-06-02T04:21:22.562268+00:00 Pypa Importer Affected by VCID-964p-24u8-yucb https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2024-118.yaml 38.6.0
2026-06-02T04:21:05.188452+00:00 Pypa Importer Affected by VCID-m5uw-4tqc-3ub8 https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2024-43.yaml 38.6.0
2026-06-02T04:19:51.486677+00:00 Pypa Importer Affected by VCID-mrfe-fcyn-1qg8 https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-205.yaml 38.6.0
2026-06-02T04:19:28.866395+00:00 Pypa Importer Affected by VCID-52vp-m7t5-hqas https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-162.yaml 38.6.0
2026-06-02T04:19:20.449782+00:00 Pypa Importer Affected by VCID-exkd-sryf-e3ad https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-145.yaml 38.6.0
2026-06-02T04:19:19.513595+00:00 Pypa Importer Affected by VCID-2cuv-kudj-c3cg https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-147.yaml 38.6.0
2026-06-02T04:19:16.864961+00:00 Pypa Importer Affected by VCID-ayhd-z87z-jkbq https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-138.yaml 38.6.0
2026-06-02T04:19:03.029695+00:00 Pypa Importer Affected by VCID-ctus-n9fc-gqhu https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-110.yaml 38.6.0
2026-06-02T04:19:01.953654+00:00 Pypa Importer Affected by VCID-5977-kuku-ebek https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-109.yaml 38.6.0
2026-06-02T04:19:00.006670+00:00 Pypa Importer Affected by VCID-a2h3-qgax-qbdr https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-98.yaml 38.6.0
2026-06-02T04:18:56.631665+00:00 Pypa Importer Affected by VCID-2cyy-g843-9qec https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-92.yaml 38.6.0
2026-06-02T04:18:55.534146+00:00 Pypa Importer Affected by VCID-j2kj-2axx-rqgr https://github.com/pypa/advisory-database/blob/main/vulns/langchain/PYSEC-2023-91.yaml 38.6.0