In short
- CVE-2025-25302 is a MEDIUM (CVSS 6.5) vulnerability affecting rembg, rembg (danielgatis).
- Chance of exploitation in the next 30 days (EPSS): 0.19%, higher than 9.3% of all vulnerabilities.
- Fix: update to 2.0.58 or later.
| Package | Affected versions | Patched versions |
|---|
| rembg PyPI | ≤ 2.0.57< 2.0.58
| 2.0.58
|
| rembg | ≤ 2.0.57
| No fix yet |
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.
NVD 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.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free