CVE-2025-25302
HIGH 8.7CVSS 4.0Rembg CORS misconfiguration
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.
- Published
- 3 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-346
- Also known as
- GHSA-59qh-fmm7-3g9qPYSEC-2025-25
- Sources
- NVDJSONOSV GHSA-59qh-fmm7-3g9qJSONOSV PYSEC-2025-25JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | danielgatis | rembgcpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:* |
<= 2.0.57 | |
| OSV | PyPI | rembg | <= 2.0.57 | |
| OSV | PyPI | rembg | < 2.0.58 | 2.0.58 |
References
- https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93 · Product, WEB
- https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ · Exploit, Third Party Advisory, ADVISORY, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-25302 · ADVISORY
- https://github.com/danielgatis/rembg · PACKAGE
- https://github.com/advisories/GHSA-59qh-fmm7-3g9q · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 11 Mar 2025)