SCA: security update for langchain-core (GHSA-qh6h-p6c9-ff54)

high Tenable Self-Hosted Container Security Plugin ID 439582

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- LangChain is a framework for building agents and LLM-powered applications. Prior to version 1.2.22,
multiple functions in langchain_core.prompts.loading read files from paths embedded in deserialized config
dicts without validating against directory traversal or absolute path injection. When an application
passes user-influenced prompt configurations to load_prompt() or load_prompt_from_config(), an attacker
can read arbitrary files on the host filesystem, constrained only by file-extension checks (.txt for
templates, .json/.yaml for examples). This issue has been patched in version 1.2.22. (CVE-2026-34070)

Solution

Update the langchain-core library and its related packages to version 1.2.22 or later.

See Also

https://github.com/advisories/GHSA-qh6h-p6c9-ff54

Plugin Details

Severity: High

ID: 439582

Version: Revision 1.4

Type: Local

Family: SCA Checks

Published: 4/1/2026

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 5

Percentile: 94.16

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:N/A:N

CVSS Score Source: CVE-2026-34070

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/27/2026

Vulnerability Publication Date: 3/27/2026

Reference Information

CVE: CVE-2026-34070

cwe: CWE-22