CVE-2025-25302Danielgatis Rembg
High 8.7 No auth needed
Follow: this CVE · Danielgatis · Danielgatis Rembg We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- —
- Auth required
- No
- Published
- Mar 3, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-346
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Rembg.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | rembg |
≤ 2.0.57 |
no fixed version | — |
| PyPI | rembg |
< 2.0.58 |
2.0.58 |
pip install "rembg>=2.0.58" |
Per OSV / GitHub Advisories (GHSA-59qh-fmm7-3g9q, PYSEC-2025-25). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| danielgatis | rembg | ≤ 2.0.57 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- securitylab.github.com Exploit Third Party Advisory