VDB
Sign up
MEDIUM6.5

PYSEC-2025-25

Quick fix

PYSEC-2025-25 — rembg: upgrade to the fixed version with the command below.

pip install --upgrade 'rembg>=2.0.58'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/rembg
Introduced in: 0Fixed in: 2.0.58
Fixpip install --upgrade 'rembg>=2.0.58'

References