~ / search / GHSA-59qh-fmm7-3g9q

GHSA-59qh-fmm7-3g9q

Rembg CORS misconfiguration

Source: GitHub Advisory Database (reviewed) High CVE-2025-25302

Packages

EcosystemPackageAffectedFixed in
PyPI rembg <= 2.0.57 no fix listed

Details

As written in the advisory (Markdown source, shown as plain text).

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

External links from the advisory. They lead to third-party sites.