SCA: security update for langchain (GHSA-hc5w-c9f8-9cc4)

medium Tenable Cloud Security Plugin ID 415635

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)

See Also

https://github.com/advisories/GHSA-hc5w-c9f8-9cc4

Plugin Details

Severity: Medium

ID: 415635

Version: Revision 1.7

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

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

Risk Information

VPR

Risk Factor: Medium

Score: 4.3

Percentile: 53.7

Vendor

Vendor Severity: Medium

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: 10/29/2024

Vulnerability Publication Date: 10/29/2024

Reference Information

CVE: CVE-2024-7774