CVE-2025-25302
Description
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.
How to fix
- rembg2.0.58 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| danielgatis rembg | v ≤ 2.0.57 | — |
| rembgPyPI | v ≤ 2.0.57, v < 2.0.58 | 2.0.58 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.