NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2025-25302: Rembg CORS misconfiguration

highCVSS 4.0 8.7GHSA-59qh-fmm7-3g9q

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, allowcredentials is set to True, which would allow any website to send authenticated cross site requests.

Published Mar 11, 2025

Affected packages

rembg

Ecosystem
PyPI
Affected
<= 2.0.57
Fixed in
No patched version yet
Check
pip show rembg

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries