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

PinePaper MCP server fetched internal URLs without checks

An advisory published on 1 December 2026 says versions 1.6.13 to 1.6.21 of the design tool's MCP server could be steered at loopback and private addresses.

By The Agentic Times ·

A puppet master's strings pull a wooden automaton to fetch papers from locked filing cabinets hidden behind a closed door, bypassing all guards.
A puppet master's strings pull a wooden automaton to fetch papers from locked filing cabinets hidden behind a closed door, bypassing all guards. · Illustration: The Agentic Times

PinePaper Studio has fixed a server-side request forgery flaw in its Model Context Protocol server, according to a GitHub advisory published on 1 December 2026. Versions 1.6.13 through 1.6.21 of the npm package @pinepaper.studio/mcp-server fetched URLs supplied in tool arguments without checking where those URLs pointed. The advisory, tracked as CVE-2026-137188, says the issue is fixed in version 1.6.22.

An MCP server is the component that gives an AI assistant access to outside tools and data. In this case several PinePaper tools took a URL from their arguments and fetched it from the server process itself. According to the advisory, internal, loopback and link-local addresses were not refused, redirects were followed without re-checking each hop, and the NAT64 local-use prefix 64:ff9b:1::/48 was not treated as internal. Content retrieved from those addresses could be returned into the conversation.

The advisory lists the affected tools and when each began fetching URLs on the server. pinepaper_import_svg, pinepaper_import_asset and pinepaper_import_image did so from 1.6.13; pinepaper_media and pinepaper_audio_beats from 1.6.14; and pinepaper_brand_kit's from_url option, along with the requests that page makes, from 1.6.18. Before 1.6.13 the URLs were handed to the canvas page rather than fetched by the server. The asset-search repositories for Iconify and Font Awesome fetch fixed hosts and are not affected.

In the proof of concept described in the advisory, the relevant handler code called fetch with redirects set to follow and no scheme, host or IP filter. A test server was run on 127.0.0.1 serving an image at one path and returning a 302 redirect to an "internal" path at another. Calling pinepaper_import_image with the redirect endpoint followed the redirect and read back the internal path's content. The advisory says the same code path will reach any host the server's machine can reach, including RFC1918 and link-local addresses, and will leak response bodies when the content type is image/*, or on the media path any URL with a recognised media extension.

The realistic trigger, according to the advisory, is prompt injection, where instructions hidden in content an AI agent reads are treated as commands. A malicious webpage or document could supply the URL, or imported SVG content could carry attacker-controlled href values that are fetched automatically. Anyone running an affected version, locally or on a server, where the assistant may act on attacker-controlled content such as a document, web page or email, is described as exposed. Through prompt injection, that content could direct the tools at services reachable only from the host, such as local admin interfaces or cloud instance metadata, and return what those services serve.

The advisory notes a limit on the damage: the requests are reads, and no write access is gained.

The fix in 1.6.22 routes every one of these requests through a safeFetch helper in dist/utils/safe-fetch.js. According to the advisory, it resolves and checks each destination address at every redirect hop and refuses private, loopback, link-local and NAT64 local-use ranges. The advisory credits the finding to mcp-safeguard, an open-source MCP security scanner. Users are advised to upgrade to 1.6.22.

Sources

  1. github.comhttps://github.com/advisories/GHSA-r32g-3hfv-h4jj