Echo: langchain: security update to 0.2.19

medium Tenable Cloud Security Plugin ID 458794

Description

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

- A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version
0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing
text files, read `.txt` files, and delete files. The vulnerability is exploited through the
`setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.
(CVE-2024-7774)

Solution

Update the langchain library and its related packages to version 0.2.19 or later.

See Also

https://advisory.echohq.com/cve/CVE-2024-7774

Plugin Details

Severity: Medium

ID: 458794

Version: Revision 1.1

Type: Local

Published: 10/2/2026

Updated: 10/5/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 6.3

Percentile: 96.43

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7.4

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

CVSS Score Source: CVE-2024-7774

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 8.2

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6.9

Threat Score: 5.5

Threat Vector: CVSS:4.0/E:P

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/28/2026

Vulnerability Publication Date: 10/29/2024

Reference Information

CVE: CVE-2024-7774