csirt@kutim:~/threat-intel/cve/CVE-2026-40087

Katalog CVE

CVSS 5.3 · Medium EPSS 0,45%

Kerentanan Improper Neutralization of Special Elements Used in a Template Engine pada langchain core. Skor CVSS 3.1 5.3 (Medium) menurut github.com.

Deskripsi (NVD)

LangChain is a framework for building agents and LLM-powered applications. Prior to 0.3.84 and 1.2.28, LangChain's f-string prompt-template validation was incomplete in two respects. First, some prompt template classes accepted f-string templates and formatted them without enforcing the same attribute-access validation as PromptTemplate. In particular, DictPromptTemplate and ImagePromptTemplate could accept templates containing attribute access or indexing expressions and subsequently evaluate those expressions during formatting. Second, f-string validation based on parsed top-level field names did not reject nested replacement fields inside format specifiers. In this pattern, the nested replacement field appears in the format specifier rather than in the top-level field name. As a result, earlier validation based on parsed field names did not reject the template even though Python formatting would still attempt to resolve the nested expression at runtime. This vulnerability is fixed in 0.3.84 and 1.2.28.

Rincian

Terbit di NVD
9 April 2026
Terakhir diubah
17 Juni 2026
Status NVD
Analyzed
CVSS 3.1
5.3 (Medium), sumber github.com
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N · uraikan di kalkulator
Jenis kelemahan (CWE)
CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine
EPSS (30 hari)
0,45% peluang dieksploitasi; lebih tinggi dari 37,6% CVE lain

Produk dan versi terdampak

VendorProdukVersi terdampak
langchain langchain core Semua versi sebelum 0.3.84
langchain langchain core Versi 1.0.0 hingga sebelum 1.2.28

> Data dari konfigurasi CPE di NVD.

Referensi dan perbaikan

Sumber: NVD · CVE.org · EPSS. Halaman ini disusun otomatis dari data tersebut; pembaruan terakhir 5 Okt 2026, 20:11 WITA. Kalau sistem di Perangkat Daerah memakai produk ini dan butuh bantuan, laporkan lewat kanal pelaporan.