{"id":"CVE-2026-137188","aliases":["CVE-2026-137188","GHSA-r32g-3hfv-h4jj"],"related":[],"kind":"vulnerability","state":"published","title":"PinePaper MCP: Server-side request forgery in URL fetching","summary":"PinePaper MCP server enables AI tools to create animated graphics with PinePaper Studio. From 1.6.13 until 1.6.22, pinepaper_import_svg, pinepaper_import_asset and pinepaper_import_image can fetch attacker-influenced URLs from the MCP server without validating the destination; pinepaper_media and pinepaper_audio_beats are affected from 1.6.14, and pinepaper_brand_kit from_url and page requests from 1.6.18. The fetches can reach internal, loopback, link-local and NAT64 local-use addresses and follow redirects without rechecking each destination, including URLs embedded in imported SVG content. An attacker can influence these inputs through content read by an assistant, causing host-reachable service responses to be returned to the conversation. The image and media paths have content-type or recognized-extension restrictions, and the requests allow reads rather than write access. Fixed-host asset-search repositories are not affected. This issue is fixed in version 1.6.22.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PinePaper MCP server enables AI tools to create animated graphics with PinePaper Studio. From 1.6.13 until 1.6.22, pinepaper_import_svg, pinepaper_import_asset and pinepaper_import_image can fetch attacker-influenced URLs from the MCP server without validating the destination; pinepaper_media and pinepaper_audio_beats are affected from 1.6.14, and pinepaper_brand_kit from_url and page requests from 1.6.18. The fetches can reach internal, loopback, link-local and NAT64 local-use addresses and follow redirects without rechecking each destination, including URLs embedded in imported SVG content. An attacker can influence these inputs through content read by an assistant, causing host-reachable service responses to be returned to the conversation. The image and media paths have content-type or recognized-extension restrictions, and the requests allow reads rather than write access. Fixed-host asset-search repositories are not affected. This issue is fixed in version 1.6.22.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nIn @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.\n\n### Details\n\nAffected tools and the version each first fetched URLs server-side:\n\n`pinepaper_import_svg` (url): 1.6.13\n`pinepaper_import_asset` (url): 1.6.13\n`pinepaper_import_image` (an http(s) source): 1.6.13\n`pinepaper_media` and `pinepaper_audio_beats` (an http(s) source): 1.6.14\n`pinepaper_brand_kit` `from_url `(and the requests that page makes): 1.6.18\nBefore 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.\n\n1.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.\n\n### Proof of concept\n\nServer-side request forgery, including redirect bypass to loopback (CWE-918)\nsrc/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`.\n\nA 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).\nThe 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.\n\n### Impact\n\nServer-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.","format":"markdown","source":"ghsa"}],"published":"2026-11-30T18:44:44.604Z","modified":"2026-12-01T14:18:12.860Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":">= 1.6.13, < 1.6.22","status":"affected"}],"vendor":"pinepaper","product":"mcp-server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.6.13","status":"affected","fixed":"1.6.22"}],"ecosystem":"npm","package":"@pinepaper.studio/mcp-server","purl":"pkg:npm/%40pinepaper.studio/mcp-server","source":"ghsa"}],"references":[{"url":"https://github.com/pinepaper/mcp-server/security/advisories/GHSA-r32g-3hfv-h4jj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pinepaper/mcp-server/commit/162731d341ddb468f08c5f93e0ac65bb64ddd7bc","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/pinepaper/mcp-server/releases/tag/v1.6.22","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137188","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/pinepaper/mcp-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-12-01T13:30:33.680Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-137188","url":"https://www.cve.org/CVERecord?id=CVE-2026-137188","licence":"CVE Terms of Use","modified":"2026-12-01T13:55:35.622Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r32g-3hfv-h4jj","url":"https://github.com/advisories/GHSA-r32g-3hfv-h4jj","licence":"CC-BY-4.0","modified":"2026-12-01T01:30:04.241Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-137188","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137188","licence":"Public domain","modified":"2026-12-01T14:18:12.860Z"}],"updatedAt":"2026-12-01T14:32:17.259Z","epss":{"score":0.00554,"percentile":0.47628,"date":"2026-12-01T12:00:22.000Z"}}