Advisory

GHSA-6qv9-48xg-fc7f

Also known as: CVE-2025-65106, PYSEC-2026-1518

Summary

LangChain Vulnerable to Template Injection via Attribute Access in Prompt Templates

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-11-20 17:42 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

langchain-core

PyPI · All systems

Affected

  • introduced 1.0.0, fixed 1.0.7 (ecosystem)

Fixed versions

1.0.7

Fix

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

langchain-core

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.80 (ecosystem)

Fixed versions

0.3.80

Fix

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

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences