Advisory

PYSEC-2025-25

Also known as: CVE-2025-25302, GHSA-59qh-fmm7-3g9q

Summary

The record has no summary.

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

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Dates

Published
2025-03-03 17:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

rembg

PyPI · All systems

Affected

  • introduced 0, fixed 2.0.58 (ecosystem)

Fixed versions

2.0.58

Fix

  • Fixed version 2.0.58
    pip install --upgrade rembg==2.0.58

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: PyPA Advisory Database · CC BY 4.0

Sources & licences