UNKNOWN PyPI
Rembg CORS misconfiguration
GHSA-59qh-fmm7-3g9q · CVE-2025-25302 · PYSEC-2025-25
Published · Modified
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.
References
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2025-25302
- PACKAGE https://github.com/danielgatis/rembg
- WEB https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93
- ADVISORY https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg
Ready to move
Start Securing
Free, no credit card | First findings in minutes