CVE-2025-25302

Medium

Description

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.

SeverityMedium
CVSS6.5
Exploit probability—
ProductDanielgatis Rembg
PublishedMar 3, 2025
First seenMar 3, 2025
Weakness typeCWE-346CWE-346

How to fix

Update
  • rembg2.0.58 or later

Affected products

ProductAffected versionsFixed in
danielgatis rembgv ≤ 2.0.57—
rembgPyPIv ≤ 2.0.57, v < 2.0.582.0.58

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.