MEDIUM · CVSS 3.1 6.1 CWE-918

CVE-2026-137188: PinePaper MCP: Server-side request forgery in URL fetching

Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-r32g-3hfv-h4jj

Summary

PinePaper MCP contains a server-side request forgery (SSRF) vulnerability due to a lack of destination validation when fetching URLs. Users running the affected npm package should upgrade immediately.

Who is affected

Deployments using @pinepaper.studio/mcp-server versions 1.6.13 through 1.6.21 are affected when assistant tools process untrusted content. Attackers can leverage prompt injection via web pages, documents, or SVGs to force the server into requesting internal, loopback, link-local, or metadata endpoints and leaking response data.

Exploitability

The vulnerability has a CVSS base score of 6.1 (Medium) with a vector of CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N, indicating network attack vector, high attack complexity, no privileges required, user interaction required, and changed scope with high confidentiality impact. EPSS is not yet available, and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm @pinepaper.studio/mcp-server >= 1.6.13, < 1.6.22 1.6.22 npm install @pinepaper.studio/[email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N

Attack vectorNetwork
Attack complexityHigh
Privileges requiredNone
User interactionRequired
ScopeChanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

FAQ

What causes the SSRF vulnerability in PinePaper MCP?

Tools that fetch URLs taken from arguments did so from the MCP server process without checking the destination, failing to refuse internal, loopback, link-local, and NAT64 local-use addresses, while also following redirects without re-checking hops.

How can an attacker trigger this vulnerability?

An attacker can use prompt injection within a webpage, document, email, or SVG content read by the assistant to supply malicious URLs that get auto-fetched by affected server tools.

Does this vulnerability allow write access to internal services?

No, requests are strictly reads and no write access is gained, though sensitive data from internal services or cloud instance metadata can be leaked.

Original advisory description
### Summary 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](http://github.com/SyedAnas01/mcp-safeguard)), the open-source MCP security scanner that found issue. ### Details 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. ### Proof of concept 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. ### Impact 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.

References

Source records: GHSA-r32g-3hfv-h4jj (OSV.dev).