All reports
Medium

Rembg allows SSRF via /api/remove

Affected versions

Version ranges need review.

PyPIrembg
Affected versions
<2.0.58
Fixed version
2.0.58
PyPIrembg
Affected versions
<= 2.0.57
Fixed version
Not reported

Exploitation

CVE-2025-25301

Probability of exploitation in the next 30 days: 0.52%

FIRST EPSS · 2026-11-21

Description

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.

Links