Rembg CORS misconfiguration
High severity
GitHub Reviewed
Published
Mar 11, 2025
to the GitHub Advisory Database
•
Updated Mar 11, 2025
Description
Published by the National Vulnerability Database
Mar 3, 2025
Published to the GitHub Advisory Database
Mar 11, 2025
Reviewed
Mar 11, 2025
Last updated
Mar 11, 2025
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