CVE-2025-68665Langchain.js
Crítica 9.1 Sin autenticación
Seguir: esta CVE · Langchain · Langchain.js Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 70
- CVSS 3.1
- 9.1
- EPSS
- —
- Requiere autenticación
- No
- Publicada
- 23 dic 2025
- Actualizada
- 19 oct 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-502
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: sí · Impacto técnico: parcial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Qué pasa
LangChain is a framework for building LLM-powered applications. Prior to @langchain/core versions 0.3.80 and 1.1.8, and prior to langchain versions 0.3.37 and 1.2.3, a serialization injection vulnerability exists in LangChain JS's toJSON() method (and subsequently when string-ifying objects using JSON.stringify(). The method did not escape objects with 'lc' keys when serializing free-form data in kwargs. The 'lc' key is used internally by LangChain to mark serialized objects. When user-controlled data contains this key structure, it is treated as a legitimate LangChain object during deserialization rather than plain user data. This issue has been patched in @langchain/core versions 0.3.80 and 1.1.8, and langchain versions 0.3.37 and 1.2.3
Qué hacer
- Aplica la actualización de seguridad del fabricante para Langchain.js.
- Se explota sin autenticación: si no puedes parchear ya, limita el acceso desde Internet al servicio afectado.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | @langchain/core |
≥ 1.0.0 < 1.1.8 |
1.1.8 |
npm install @langchain/core@1.1.8 |
| npm | @langchain/core |
< 0.3.80 |
0.3.80 |
npm install @langchain/core@0.3.80 |
| npm | langchain |
≥ 1.0.0 < 1.2.3 |
1.2.3 |
npm install langchain@1.2.3 |
| npm | langchain |
< 0.3.37 |
0.3.37 |
npm install langchain@0.3.37 |
Según OSV / GitHub Advisories (GHSA-r399-636x-v7f6). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| langchain | langchain.js | < 0.3.37 |
| langchain | langchain.js | ≥ 1.0.0 < 1.2.3 |
| langchain | langchain/core | < 0.3.80 |
| langchain | langchain/core | ≥ 1.0.0 < 1.1.8 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch
- github.com Release Notes
- github.com Release Notes
- github.com Vendor Advisory