MCP server that returns embedded prompt injections in tool output
Summary
MCP server whose tool responses carry system-role-like directives inside the returned content. The agent, which trusts the tool output as data, instead reads the embedded instructions as task directives and pivots behavior.
Severity & confidence
Low
Hygiene-grade issue with limited direct impact. Fix opportunistically; monitor in case context changes (new exploit, new dependency, etc.).
Confirmed
Observed directly by Jiffy scanners or validated by multiple independent sources. Indicators are reliable enough to drive automated action.
Indicators
Observed patterns and artifacts associated with this entry. Each indicator can be copied into your detection stack or SIEM.
(?is)<\s*(?:system|assistant|admin)\s*>|\[\s*system\s*\]
Detection rule
A YARA-style pseudo-rule auto-generated from the indicators above. Useful as a starting point — adapt the syntax for your target detection platform.
rule jiffy_ti_2026_000038
{
meta:
source = "jiffy-intel"
severity = "low"
description = "Auto-generated from Jiffy Intel indicators"
strings:
$tool_call_pattern_0 = "(?is)<\\s*(?:system|assistant|admin)\\s*>|\\[\\s*system\\s*\\]"
condition:
$tool_call_pattern_0
}Auto-generated from the indicators above. Adapt syntax for your detection stack before deploying.
Affected tools
| Tool | Versions | Status |
|---|---|---|
| Any MCP-capable agent | * | vulnerable |
| Claude Code | * | vulnerable |
| Cursor | * | vulnerable |
Example artifacts
Sanitized examples of artifacts Jiffy has observed exhibiting this pattern. Publisher handles are redacted; version ranges and status reflect the most recent scan.
- knowledge-base-mcpMCP serverRemoved
- docs-fetcher-mcpMCP serverUnder review
- wiki-search-mcpMCP serverQuarantined
How to remediate
- 01Sanitize MCP tool output before feeding back into the agent context.
- 02Strip role/system markers.
- 03Prefer structured JSON with typed fields.
Timeline & sources
Timeline
- First observedMar 1, 20261 month ago
- Last updatedApr 20, 2026today
- PublishedMar 15, 20261 month ago
Sources
References
Scan for patterns like this
Point Jiffy at your GitHub org, IDE config, or a single artifact. Get a scored report in under a minute.
Start a free scan