8.7High
CVE-2025-25302Rembg CORS misconfiguration
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.
Weakness (CWE):
CWE-346
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| danielgatis | rembg | <= 2.0.57 |
References and patches
CPE matches (NVD) (1)
cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*≤ 2.0.57