CVE-2026-75130

Context7 2.1.2 Prompt Injection via Custom AI Instructions

Published Aug 18, 2026 CVSS 4.0 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Uptash
Uptash context7
Vendors & Products Uptash
Uptash context7
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'}

Weaknesses
  • CWE-1427

    Improper Neutralization of Input Used for LLM Prompting

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 19, 2026, 3:14 PM
Reserved
Aug 17, 2026, 6:39 PM
Status
Deferred
Published
Aug 18, 2026, 6:19 PM
Modified
Oct 22, 2026, 10:10 PM