Vulnerabilidades / CVE-2024-7042

crítica

CVE-2024-7042

@langchain/community SQL Injection vulnerability

Publicada Modificada CWE 89
En la Trivy database desde, como mínimo, el 24 oct 2026, 07:11 UTCNo consta cuándo entró antes de ese build.

Severidad por fuente

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA2.1CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según GHSA (baja).

Descripción

A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.

Paquetes afectados y versiones corregidas

FuentePaqueteCorregido en
echo npm::Echo OSV@langchain/community0.3.3
npm::GitHub Security Advisory npm@langchain/community0.3.3
seal pip::Seal Security Databaselangchain, seal-langchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999
Mostrar las 4 entradas de 3 fuentes
FuentePaqueteCorregido en
echo npm::Echo OSV@langchain/community0.3.3
npm::GitHub Security Advisory npm@langchain/community0.3.3
seal pip::Seal Security Databaselangchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999
seal pip::Seal Security Databaseseal-langchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999

Referencias

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.