LangChainPublished 20 Oct 2023NVD status: Modified

CVE-2023-32786

In Langchain through 0.0.155, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.

ComponentLangChain
Severityhigh (CVSS 7.5)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published (NVD)2023-10-20
Last modified2026-06-17
Affected versions
< 0.0.329
from the GitHub-reviewed advisory GHSA-6h8p-4hx9-w66c
Fixed in0.0.329
WeaknessCWE-74
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads <= 0.0.155. The ranges above come from the GitHub-reviewed advisory GHSA-6h8p-4hx9-w66c. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).

NVD description

In Langchain through 0.0.155, prompt injection allows an attacker to force the service to retrieve data from an arbitrary URL, essentially providing SSRF and potentially injecting content into downstream tasks.

What to do

  • Upgrade LangChain to 0.0.329 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources