What’s Vulnerable › Vulnerabilities
CVE-2025-25302: Rembg CORS misconfiguration
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-03-03 · updated 2026-06-17
- Weakness: CWE-346
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.
Affected products
- danielgatis rembg: through 2.0.57
References
- https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/
Get alerted when CVE-2025-25302 or the next vulnerability affects your stack