{"action":"Upgrade langchain-core to 0.3.84 or later.","affected":[{"fixed":"0.3.84","introduced":"0"},{"fixed":"1.2.28","introduced":"1.0.0a1"}],"component":"langchain-core","cve_ids":["CVE-2026-40087"],"ecosystem":"PyPI","epss":0.00262,"exploited":false,"fixed_versions":["0.3.84","1.2.28"],"ghsa_id":"GHSA-926x-3r5x-gfhw","id":"tcs_01M5KH07CF1YEMQJ8C96CRTNMM","modified_at":"2026-07-13T16:31:48.838699776Z","published_at":"2026-07-13T14:36:50.359731Z","references":["https://osv.dev/vulnerability/PYSEC-2026-2563","https://github.com/langchain-ai/langchain/security/advisories/GHSA-926x-3r5x-gfhw","https://nvd.nist.gov/vuln/detail/CVE-2026-40087","https://github.com/langchain-ai/langchain/pull/36612","https://github.com/langchain-ai/langchain/pull/36613","https://github.com/langchain-ai/langchain/commit/6bab0ba3c12328008ddca3e0d54ff5a6151cd27b","https://github.com/langchain-ai/langchain/commit/af2ed47c6f008cdd551f3c0d87db3774c8dfe258","https://github.com/langchain-ai/langchain","https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D0.3.84","https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.2.28","https://pypi.org/project/langchain-core","https://github.com/advisories/GHSA-926x-3r5x-gfhw"],"severity":{"label":"medium","score":5.3},"sources":[{"source":"osv","source_id":"PYSEC-2026-2563","url":"https://osv.dev/vulnerability/PYSEC-2026-2563"}],"summary":"LangChain has incomplete f-string validation in prompt templates"}