6.4medium
Context7 2.1.2 Prompt Injection via Custom AI Instructions
- Severity
- 6.4medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- VulnCheck
Description
Context7 through 2.1.2 contains a prompt injection vulnerability that allows attackers to execute malicious instructions in connected AI coding agents by injecting unsanitized content through the Custom AI Instructions feature served via the MCP server. Attackers can poison the custom instructions to exfiltrate credentials from environment files to an attacker-controlled service and perform destructive file deletion on the victim's machine when the agent makes a routine library documentation request.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Uptash Context7 | up to 2.1.2 | CVE List |
All scores
| VulnCheck | 6.4medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H |
| VulnCheck | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Context7 through 2.1.2 contains a prompt injection vulnerability that allows attackers to execute malicious instructions in connected AI coding agents by injecting unsanitized content through the Custom AI Instructions feature served via the MCP server. Attackers can poison the custom instructions to exfiltrate credentials from environment files to an attacker-controlled service and perform destructive file deletion on the victim's machine when the agent makes a routine library documentation request.
NVD (es)
Context7 hasta 2.1.2 contiene una vulnerabilidad de inyección de prompt que permite a los atacantes ejecutar instrucciones maliciosas en agentes de codificación de IA conectados inyectando contenido no sanitizado a través de la función de Instrucciones de IA Personalizadas servida a través del servidor MCP. Los atacantes pueden envenenar las instrucciones personalizadas para exfiltrar credenciales de archivos de entorno a un servicio controlado por el atacante y realizar la eliminación destructiva de archivos en la máquina de la víctima cuando el agente realiza una solicitud rutinaria de documentación de la biblioteca.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-75130 changed 2026-08-19 | CVE Terms of Use |
| NVD | CVE-2026-75130 changed 2026-10-22 | Public domain |