CVE-2025-25302: Rembg CORS misconfiguration
Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the CORS middleware is setup incorrectly. All origins are reflected, which allows any website to send cross site requests to the rembg server and thus query any API. Even if authentication were to be enabled, allowcredentials is set to True, which would allow any website to send authenticated cross site requests.
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 CORS middleware is setup incorrectly. All origins are reflected, which allows any website to send cross site requests to the rembg server and thus query any API. Even if authentication were to be enabled, allow_credentials is set to True, which would allow any website to send authenticated cross site requests.
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-25301
Rembg allows SSRF via /api/remove
medium7.5No fixMar 11, 2025
