Advisory

PYSEC-2026-1518

Also known as: CVE-2025-65106, GHSA-6qv9-48xg-fc7f

Summary

LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates

Severity

Not rated by the source.

Dates

Published
2026-07-07 16:03 UTC
Modified
2026-07-07 17:46 UTC

Affected packages and fixes

langchain-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.80, introduced 1.0.0, fixed 1.0.7 (ecosystem)

Fixed versions

0.3.80, 1.0.7

Fix

  • Fixed version 0.3.80
    pip install --upgrade langchain-core==0.3.80
  • Fixed version 1.0.7
    pip install --upgrade langchain-core==1.0.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences