Friday, 4 December 2026
4 agent hacks today▼ 3 vs yesterday (7)

Flaw in JPMorgan documentation MCP server allowed internal probing

CVE-2026-139902 let attackers steer a coding agent's tool calls at loopback, internal hosts and cloud metadata endpoints before a fix landed.

By The Agentic Times ·

A marionette puppet's strings tangled around its own machinery, pulling its wooden hands toward hidden gears and mirrored reflections instead of the stage beyond.
A marionette puppet's strings tangled around its own machinery, pulling its wooden hands toward hidden gears and mirrored reflections instead of the stage beyond. · Illustration: The Agentic Times

A server-side request forgery flaw in JPMorgan's Documentation-Search MCP server let attackers use prompt injection to make the server fetch internal URLs, according to an advisory published on 30 November 2026 in the US National Vulnerability Database.

The issue is tracked as CVE-2026-139902. It affects the Documentation-Search MCP server in the jpmorgan-payments/ai repository before commit cc72482. MCP, the Model Context Protocol, is the interface that lets AI agents call external tools; in this case the tool set is meant to help a coding agent search API documentation.

According to the NVD entry, the problem sits in the server's related() tool, which skips domain validation of the url argument it is given. Because the argument is not checked against an allowed list of domains, anything that can influence what the agent passes to that tool can decide where the server sends its request.

That is where prompt injection comes in. Prompt injection is an attack in which text the model reads, such as a web page or a document, carries instructions that the model then follows. The advisory says attackers influencing tool arguments through prompt injection can force the server to make GET requests to loopback services, internal hosts and cloud metadata endpoints. Cloud metadata endpoints are internal addresses that cloud platforms expose to running workloads.

The stated impact is internal reachability probing. In other words, an attacker can learn which internal services respond, using the MCP server as a relay from outside the network. The NVD description does not claim data was read back from those endpoints, and it does not describe any known exploitation against real deployments.

The advisory references the vulnerable code in the repository's server.py file, a pull request numbered 19, and commit cc72482, which the NVD entry identifies as the point at which the affected versions end. Users running the Documentation-Search MCP server from that repository therefore need a build at or after that commit. A matching advisory from VulnCheck is also listed as a reference.

The pattern is a familiar one for agent tooling. A tool that fetches a URL on behalf of a model is, in effect, a proxy that sits inside the trust boundary of whoever runs it. If the model can be persuaded to supply the target, the usual perimeter controls do not apply, because the request originates from the server rather than from the attacker. Domain validation on the url argument is the control that was missing here, and restoring it is what the fix commit addresses.

The record for this issue lists the vulnerability as confirmed and the affected agent type as coding. No severity score is quoted in the NVD description text, and no exploitation in the wild is reported in the listed sources. JPMorgan has not published a separate statement in the material referenced by the advisory beyond the repository changes themselves.

Organisations that have pulled the MCP server into developer environments should check the commit they are running. Anyone building similar documentation-fetching tools may want to review whether their own URL arguments are validated against an allowed list before the request is made.

Sources

  1. nvd.nist.govhttps://nvd.nist.gov/vuln/detail/CVE-2026-139902