Close SSRF in /api/v1/trail/download (GHSA-7vqq-mjjr-h9j5)
fix: close SSRF in /api/v1/trail/download (GHSA-7vqq-mjjr-h9j5) (#1104)
Close SSRF in /api/v1/trail/download (GHSA-7vqq-mjjr-h9j5)c37133-fix-close-ssrf-in-api-v1-trail-cve-2026-71495fixclose ssrf api trail download ghsa
Committed by Flomp
commit message
fix: close SSRF in /api/v1/trail/download (GHSA-7vqq-mjjr-h9j5) (#1104)
* fix: close SSRF in /api/v1/trail/download (GHSA-7vqq-mjjr-h9j5)
The endpoint fetched a user-supplied URL with no validation, letting
unauthenticated requests reach internal services (PocketBase, Meilisearch)
and cloud metadata endpoints. Add auth gating, protocol/hostname
allowlisting, and DNS-resolved IP validation against private/reserved
ranges (IPv4 and IPv6, including tunneled addresses like 6to4/Teredo/NAT64).
The connection is pinned to the validated IP and redirects are rejected
outright, closing the DNS-rebinding and redirect-based bypasses of a
naive resolve-then-fetch check.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
* fix url import modal loading
* allow max 5 redirects
---------
Co-authored-by: Christian Beutel <>
Co-authored-by: Claude Sonnet 5 <[email protected]>Editor assessment
This commit patches CVE-2026-71495. The body is excellent: it explains that unauthenticated requests could make the endpoint fetch any URL, reaching PocketBase, Meilisearch and cloud metadata, and then the layered fix - auth gating, protocol and hostname allowlists, DNS-resolved IP checks covering 6to4, Teredo and NAT64, a connection pinned to the validated address, and redirect handling. The subject carries an advisory id and PR number, which under CCv1 hygiene rules is what caps an otherwise exemplary message.