ADVISORIES

PyPA Advisory Database

PYSEC-2026-1508

Langchain Server-Side Request Forgery vulnerability

Details

In Langchain before 0.0.329, 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.

Affected packages

EcosystemPackageAffected versions
PyPIlangchain
All versions before 0.0.329 (fixed in 0.0.329)

References