Advisory

GHSA-59qh-fmm7-3g9q

Also known as: CVE-2025-25302, PYSEC-2025-25

Summary

Rembg CORS misconfiguration

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-11 21:32 UTC
Modified
2025-04-09 17:59 UTC

Affected packages and fixes

rembg

PyPI · All systems

Affected

  • introduced 0, last affected 2.0.57 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences