In @pinepaper.studio/mcp-server 1.6.13 through 1.6.21, tools that fetch a URL taken from their arguments did so from the MCP server process without checking the destination. 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 from those addresses could be returned to the conversation. Fixed in 1.6.22. - finder - mcp-safeguard (github.com/SyedAnas01/mcp-safeguard), the open-source MCP security scanner that found issue.
Affected tools and the version each first fetched URLs server-side:
pinepaper_import_svg (url): 1.6.13
pinepaper_import_asset (url): 1.6.13
pinepaper_import_image (an http(s) source): 1.6.13
pinepaper_media and pinepaper_audio_beats (an http(s) source): 1.6.14
pinepaper_brand_kit from_url (and the requests that page makes): 1.6.18
Before 1.6.13 these URLs were handed to the canvas page rather than fetched by the server. The asset-search repositories (Iconify, Font Awesome) fetch fixed hosts and are not affected.
1.6.22 routes every one of these requests through safeFetch (dist/utils/safe-fetch.js). It resolves and checks each destination address at every redirect hop, and refuses private, loopback, link-local and NAT64 local-use ranges.
Server-side request forgery, including redirect bypass to loopback (CWE-918)
src/tools/handlers.ts, fetchImageAsDataUrl (lines 355-375) and resolveMediaSource (lines 473-480) call fetch(url, {redirect: "follow"}) with no scheme, host, or IP filter. These are reached from pinepaper_import_image, inlineSvgImages (any href in imported SVG content), pinepaper_media, and pinepaper_audio_beats.
A local test server was set up on 127.0.0.1 to serve an image at one path and return a 302 redirect to an "internal" path at another. Calling pinepaper_import_image with a URL pointing at the redirect endpoint followed the redirect and read back the internal path's content. The same code path will reach any host a server's machine can reach, including RFC1918 and link-local addresses, and leak response bodies when the content type is image/* (or, on the media path, any URL with a recognized media extension).
The realistic trigger is prompt injection: a malicious webpage or document the agent reads could supply the URL, or SVG content with attacker-controlled href values that get auto-fetched.
Server-side request forgery. Anyone running an affected version, locally or on a server, where the assistant may act on content an attacker controls (a document, web page or email it is asked to read). Through prompt injection, such content could direct these tools at services reachable only from the host, such as local admin interfaces or cloud instance metadata, and return what they serve. Requests are reads; no write access is gained. Upgrade to 1.6.22.
{
"cwe_ids": [
"CWE-918"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-01T01:14:38Z",
"nvd_published_at": "2026-11-30T19:17:56Z",
"severity": "MODERATE"
}