Medium severity6.5NVD Advisory· Published Mar 3, 2025· Updated Jun 17, 2026
CVE-2025-25302
CVE-2025-25302
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
rembgPyPI | <= 2.0.57 | — |
Affected products
3cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*range: <=2.0.57
- (no CPE)range: <= 2.0.57
Patches
Vulnerability mechanics
References
5- securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/nvdExploitThird Party Advisory
- github.com/advisories/GHSA-59qh-fmm7-3g9qghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-25302ghsaADVISORY
- securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembgghsaADVISORY
- github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.pynvdProductWEB
News mentions
0No linked articles in our index yet.