{"id":"CVE-2025-25302","published":"2025-03-03T16:40:34Z","modified":"2025-03-03T17:55:31Z","title":"Rembg CORS misconfiguration","vendor":"danielgatis","product":"rembg","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00193,"percentile":0.09198,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93","tags":["x_refsource_MISC"]}],"priority":{"score":7.9,"factors":[{"name":"EPSS percentile","points":1.84},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"danielgatis","affectedVersions":[{"vendor":"danielgatis","product":"rembg","versions":["<= 2.0.57"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-03T17:55:21.651518Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"rembg","vulnerableRanges":["<=2.0.57","<2.0.58"],"patched":["2.0.58"],"from":["GHSA-59qh-fmm7-3g9q","PYSEC-2025-25"],"provenance":"source"}],"summary":{"text":"The rembg background-removal tool (danielgatis/rembg, versions 2.0.57 and earlier) has a CORS middleware misconfiguration that reflects every origin and sets allow_credentials to True, so it does not validate which websites may make cross-origin requests to the rembg server. An attacker can exploit this from a malicious web page that a user visits over the network, without any authentication, to send cross-site requests that query the server's APIs and read the responses; even if authentication were enabled, credentialed cross-site requests would also be permitted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:37Z"},"euvd":{"id":"EUVD-2025-6008","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-25301","published":"2025-03-03","fixed":"2.0.58","kev":false},{"cve":"CVE-2025-25302","published":"2025-03-03","fixed":"2.0.58","kev":false},{"cve":"CVE-2026-40086","published":"2026-04-10","fixed":"2.0.75","kev":false,"link":{"from":"CVE-2025-25302","to":"CVE-2026-40086","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:rembg","fromFixed":"2.0.58","toFixed":"2.0.75","daysApart":403}]}},{"cve":"CVE-2026-115924","published":"2026-10-26","fixed":"2.0.82","kev":false}],"package":"PyPI:rembg"}}