/

CVE-2026-72606

Severity:

HIGH RISK

(7.5)

SSRF (CWE-918) in Pinry Pin-from-URL Server Feature

CVE-2026-72606

Deferred

Vulnerability type

Category:

Server-Side Request Forgery

CWE:

CWE-918

Impact:

Unauthorized Server-Side Network Access

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Pinry through 2.1.13 contains a server-side request forgery vulnerability in its pin-from-URL feature. Because user-supplied URLs are passed to the server without sufficient host or IP validation, an unauthenticated attacker may cause requests to arbitrary external or internal destinations, including cloud metadata services.

Affected context

The vulnerability occurs in Pinry deployments that expose the pin-from-URL functionality and permit unauthenticated use through the default registration configuration or equivalent access settings. Risk is increased when the server can reach private network services, administrative interfaces, or cloud metadata endpoints that are not directly accessible to the attacker.

Exploit preconditions

  • Attack surface: The pin-from-URL feature and its server-side URL-fetching logic
  • Required access: No authentication may be required when new registrations and related functionality remain available anonymously
  • Trigger point: Submission of a user-controlled URL for server-side retrieval
  • Why exploitation is possible: The supplied URL is passed to the HTTP client without adequate host, destination-IP, or network-boundary validation

Why this happens

The underlying flaw is insufficient validation of a user-controlled network destination before the server initiates an outbound request. This behavior maps to CWE-918: Server-Side Request Forgery, because application-controlled requests can be redirected toward arbitrary external or internal hosts. A secure design must treat destination URLs as untrusted data and enforce explicit network and address policies before making requests.

Potential impact

  • Access to internal services that trust the Pinry server's network location
  • Retrieval of cloud instance metadata or other sensitive endpoint responses
  • Exposure of credentials, tokens, configuration data, or internal service information
  • Network reconnaissance from the server's position
  • Increased risk of follow-on compromise if reachable services contain additional weaknesses

General mitigation guidance

Mitigation generally focuses on reducing trust in user-supplied URLs and restricting the server's outbound network reach.

Common defensive patterns include:

  • Allowing requests only to explicitly approved schemes, hosts, and destination ports
  • Resolving hostnames and validating resulting IP addresses against private, loopback, link-local, multicast, and other restricted ranges
  • Rechecking destinations after redirects and preventing validation bypass through DNS changes or alternate address formats
  • Using a dedicated outbound proxy or egress policy with a default-deny posture
  • Requiring authentication and authorization for URL-fetching functionality where anonymous access is unnecessary
  • Applying least-privilege network permissions and limiting access to cloud metadata services
  • Returning minimal fetch errors and response data to reduce information disclosure

How teams detect issues like this

Organizations can identify SSRF risks through:

  • Static analysis rules for HTTP client calls that receive request parameters or other user-controlled values
  • Code review checks for URL parsing, redirect handling, DNS resolution, and private-address filtering
  • Tests that exercise loopback, private, link-local, metadata, alternate IP, and redirect destinations
  • Egress firewall, proxy, and DNS monitoring for unexpected connections from application workers
  • Policy enforcement requiring allowlists and authenticated access for server-side fetch features
  • Automated code review tools that flag network requests constructed from untrusted input

Sources

SourceLink
github.comgithub.com/pinry/pinry

Frequently asked

questions

Yes. Where the pin-from-URL feature is reachable without authentication, a remote attacker may submit a crafted destination and cause the Pinry server to make the request.

The attacker needs access to the URL-fetching feature. If anonymous registration and triggering are enabled, no existing account may be required.

Treat every submitted URL as untrusted, enforce an explicit destination allowlist, block restricted IP ranges and unsafe redirects, and constrain outbound traffic at the network layer.

Combine secure URL validation with egress controls, least-privilege network permissions, authentication for sensitive features, and automated tests covering internal and metadata destinations.

Find out what's already
exploitable in your codebase.