jeffersongoncalves/laravel-ssrf-guard
A Laravel package that helps protect your app from Server-Side Request Forgery (SSRF) by validating outbound URLs and blocking requests to private, loopback, and reserved network ranges. Useful for guarding HTTP clients and any user-supplied URLs.
Scope note: This is a first-pass assessment written against v1.1.0. The only release artifact available is a compare link between v1.0.1 and v1.1.0 with no published changelog body, so the delta between versions is unverified. Findings below are based on the package's stated purpose (laravel-ssrf-guard) and standard Laravel package conventions; API surface details must be confirmed against the README before commitment.
Http client or Guzzle handler stack. The HTTP-client path is what actually prevents SSRF; the validator alone only protects inputs that happen to be validated. Feasibility is high if the HTTP-client integration exists; that is the single most important thing to verify.Illuminate\Http\Client versions per composer.json. Should be treated as a security dependency, not a utility — it belongs in require, pinned, and covered by our dependency-review gate.composer.json, and (b) coexistence with any existing Guzzle middleware, retry policy, or custom handler stack already registered. Middleware ordering is the usual failure point — the guard must run on the resolved, final request.127.0.0.1, 0.0.0.0, [::1], 169.254.169.254, decimal-encoded IPs, redirect-to-internal, DNS-rebinding harness). This determines whether it is a control or a checkbox.config:cache).Recommendation: Proceed to a time-boxed technical spike at v1.1.0; hold the adoption decision until (a) a real changelog for 1.1.0 is available and (b) the bypass test suite confirms the package intercepts the connection rather than only pre-validating. Treat egress filtering as the primary control and this package as a complementary, developer-facing guardrail.
How can I help you explore Laravel packages today?