Low, CVSS 3.5npmAmendedPublished
Papra HTTP redirect bypass can lead to SSRF via webhook delivery system
CVE-2026-48051 · GHSA-5g86-85rp-f9hx
- Affected
- npm @papra/webhooks < 0.3.3
- Fixed in
- 0.3.3· Vendor fix available
- Issue
- Papra's webhook delivery system contains an SSRF protection bypass that allows any authenticated organisation member to cause the server to make HTTP requests to internal addresses — loopback, link-local, and RFC-1918 ranges. The SSRF protection validates the registered webhook URL but ignores redirect destinations. The HTTP client (ofetch) follows 3xx responses automatically, and the redirect target is never checked against the blocklist. An attacker registers a webhook pointing to an attacker-controlled server, which redirects incoming POSTs to any internal address. Exploitation was confirmed by live test against the official Docker image. The fix is a single-line change to the webhook HTTP client. Details The vulnerable call The webhook HTTP client in packages/webhooks/src/webhooks.services.ts (lines 16–19) calls ofetch.raw() without specifying a redirect option: ofetch is a thin wrapper around the WHATWG Fetch API. The Fetch specification defines three redirect modes —…
Recommended action: Upgrade to 0.3.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.