high7.5
CVE-2025-25301
Rembg allows SSRF via /api/remove
Impact
Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the /api/remove endpoint takes a URL query parameter that allows an image to be fetched, processed and returned. An attacker may be able to query this endpoint to view pictures hosted on the internal network of the rembg server. This issue may lead to Information Disclosure.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pip | rembg | <= 2.0.57 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Danielgatis | Rembg | through 2.0.57 |