First published: Tue Mar 11 2025(Updated: )
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 Software | Affected Version | How to fix |
---|---|---|
pip/rembg | <=2.0.57 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of GHSA-59qh-fmm7-3g9q is considered moderate due to improper CORS configuration allowing potential cross-site request forgery.
To fix GHSA-59qh-fmm7-3g9q, upgrade Rembg to version 2.0.58 or later to ensure proper CORS settings.
GHSA-59qh-fmm7-3g9q addresses the issue where all origins are reflected, allowing unauthorized cross-site requests to the rembg server.
Rembg versions up to and including 2.0.57 are affected by GHSA-59qh-fmm7-3g9q.
Yes, GHSA-59qh-fmm7-3g9q can lead to data exposure as it allows any website to send requests to the rembg server.