Intel

AIKIDO-2026-10388

spree_core is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 18, 2026

75

High Risk

This Affects:

RUBYspree_core
5.0.0 - 5.3.4
Fixed in 5.3.5
Are you affected? Scan for Free

TL;DR

Webhook delivery (spree_api) and image download from URL (spree_core SaveFromUrlJob) send HTTP requests to URLs that can be controlled or influenced by configuration or job arguments. The previous custom SSRF checks did not fully prevent requests to private or internal addresses (e.g. RFC 1918, loopback, link-local, cloud metadata), so an attacker who can set a webhook endpoint URL or trigger image-from-URL with a malicious URL could probe or access internal services. The fix replaces the custom logic with the ssrf_filter gem for webhook delivery and image download, adds WebhookEndpoint validation that rejects URLs resolving to private IPs, enforces a 20MB download size limit for images, and stops passing secret_key in job arguments to prevent leakage.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

spree_core is vulnerable to Server-Side Request Forgery (SSRF) in versions 5.0.0 - 5.3.4.

How to fix this

Upgrade the spree_core and spree library to the patch version.