CVE-2025-25301: Rembg allows SSRF via /api/remove
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.
Published Mar 11, 2025
Affected packages
rembg
- Ecosystem
- PyPI
- Affected
- <= 2.0.57
- Fixed in
- No patched version yet
- Check
pip show rembg
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-115924
Rembg: Unauthenticated SAM model injection permits local-file disclosure through malicious ONNX graphs
high8.6Oct 27, 2026CVE-2026-40086
Rembg has a Path Traversal via Custom Model Loading
medium5.3Apr 10, 2026GHSA-55v6-g8pm-pw4c
rembg server is vulnerable to Server-Side Request Forgery (SSRF) and a weak default CORS configuration
medium4.3Apr 10, 2026CVE-2025-25302
Rembg CORS misconfiguration
high8.7No fixMar 11, 2025
