CVE-2026-75130: Context7 2.1.2 Prompt Injection via Custom AI Instructions

Published Aug 18, 2026
·
Updated

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 Software

1 affected component
Context7>2.1.2<=2.1.2

Event History

Aug 18, 2026
CVE Published
via MITRE·06:02 PM
Data Sourced
via MITRE·06:02 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users of connected AI coding agents that make routine library documentation requests through the Context7 MCP server are exposed. The issue can lead to credential exfiltration from environment files and destructive file deletion on the machine where the agent operates.

2

What does an attacker need to exploit it?

An attacker needs the ability to poison content provided through the Custom AI Instructions feature. Exploitation occurs when a connected AI coding agent processes that unsanitized content during a routine library documentation request.

3

What could exploitation allow an attacker to do?

The described malicious instructions can direct the agent to exfiltrate credentials from environment files to an attacker-controlled service and delete files on the victim machine. The stated impact includes high confidentiality, integrity, and availability consequences.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203