SCA: security update for @langchain/mongodb (GHSA-m6rx-h84q-8r95)

medium Tenable Cloud Security Plugin ID 473852

Description

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

- LangChain is a framework for building LLM-powered applications. Prior to 1.3.1, MongoDBChatMessageHistory
does not enforce the documented string type for an untrusted structured session identifier at runtime,
allowing the identifier to be interpreted as a MongoDB query condition rather than as a literal value when
multiple users' histories are stored in a shared MongoDB collection. An attacker able to invoke chat-
history operations can read, modify, or delete another user's stored conversation. Applications using
authenticated, server-controlled string identifiers are not affected. This issue is fixed in version
1.3.1. (CVE-2026-106119)

Solution

Update the @langchain/mongodb library and its related packages to version 1.3.1 or later.

See Also

https://github.com/advisories/GHSA-m6rx-h84q-8r95

Plugin Details

Severity: Medium

ID: 473852

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/8/2026

Updated: 10/8/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 58.38

Vendor

Vendor Severity: Medium

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

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

CVSS Score Source: CVE-2026-106119

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

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

CVSS v4

Risk Factor: Medium

Base Score: 6

Threat Score: 2.3

Threat Vector: CVSS:4.0/E:U

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

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/8/2026

Vulnerability Publication Date: 10/6/2026

Reference Information

CVE: CVE-2026-106119

cwe: CWE-943