Skip to content
OpenAdvisories
High · 8.7 CVE-2025-25302 EUVD-2025-6008GHSA-59qh-fmm7-3g9qPYSEC-2025-25

Rembg CORS misconfiguration

Published Mar 3, 2025 · Updated Mar 3, 2025 · Assigned by GitHub_M

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

VendorProductAffectedFixed
danielgatis rembg <= 2.0.57 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI rembg <= 2.0.57 — GHSA-59qh-fmm7-3g9q
PyPI rembg < 2.0.58 2.0.58 PYSEC-2025-25

References