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.
Published: 2026-08-18
Score: 6.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Context7 2.1.2 contains a prompt injection vulnerability that allows attackers to insert malicious content through the Custom AI Instructions feature. The injected instructions are served by the MCP server without proper sanitisation, enabling attackers to execute harmful commands inside the connected AI coding agents. Consequences include exfiltration of credentials stored in environment files and destructive deletion of files on the victim’s machine when the agent processes a routine library documentation request.

Affected Systems

The vulnerability affects Uptash’s Context7 product, specifically version 2.1.2. Users running this exact version and the MCP server component are at risk unless mitigated or upgraded.

Risk and Exploitability

The vulnerability has a CVSS score of 6.4, indicating a moderate severity. The EPSS score is not available, so the likelihood of exploitation cannot be quantified, and the flaw is not listed in the CISA KEV catalog. Based on the description, it is inferred that attackers can exploit this flaw by sending malicious custom instructions to the MCP server via an exposed API or web interface, indicating a remote avenue that does not require local privileges.

Generated by OpenCVE AI on August 18, 2026 at 20:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Context7 to a version that includes the prompt injection fix
  • Disable the Custom AI Instructions feature or restrict its usage to authenticated and trusted users
  • Implement input validation and sanitisation for the MCP server to ensure only safe content is accepted

Generated by OpenCVE AI on August 18, 2026 at 20:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 18:15:00 +0000

Type Values Removed Values Added
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.
Title Context7 2.1.2 Prompt Injection via Custom AI Instructions
Weaknesses CWE-1427
References
Metrics cvssV3_1

{'score': 9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 6.4, 'vector': '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T18:57:30.864Z

Reserved: 2026-08-17T18:39:57.660Z

Link: CVE-2026-75130

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-18T18:19:34.197

Modified: 2026-08-18T18:19:34.197

Link: CVE-2026-75130

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T20:15:04Z

Weaknesses
  • CWE-1427

    Improper Neutralization of Input Used for LLM Prompting