Rembg CORS misconfiguration
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-346.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| danielgatis | rembg | up to 2.0.57 | — | No fix listed | CNA |
| — | rembg (PyPI) | up to 2.0.57 | — | No fix listed | GHSA-59qh-fmm7-3g9q |
- rembg Vendordanielgatis Affected up to 2.0.57 Fixed in — No fix listed CNA
- rembg (PyPI) Vendor— Affected up to 2.0.57 Fixed in — No fix listed GHSA-59qh-fmm7-3g9q
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* | up to 2.0.57 | Vulnerable | danielgatis |
- cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* Versions up to 2.0.57 Vulnerable ·danielgatis
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2025-25302
- 2026-10-03 Alias added: GHSA-59qh-fmm7-3g9q
References
Advisory 2
More danielgatis Rembg vulnerabilities
- TI-2026-28914 Rembg has a Path Traversal via Custom Model Loading CVSS 3.1MEDIUM 5.3
- TI-2025-18955 Rembg allows SSRF via /api/remove CVSS 4.0MEDIUM 6.9
Sources
- CVE-2025-25302 · CVE Program
- CVE-2025-25302 · NVD
- FIRST EPSS
- GHSA-59qh-fmm7-3g9q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences