CVE-2025-25302

Rembg CORS misconfiguration

Published Mar 3, 2025 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-6008 Rembg CORS misconfiguration
Github GHSA Github GHSA GHSA-59qh-fmm7-3g9q Rembg CORS misconfiguration
History
Type Values Removed Values Added
First Time appeared Danielgatis
Danielgatis rembg
CPEs cpe:2.3:a:danielgatis:rembg:*:*:*:*:*:*:*:*
Vendors & Products Danielgatis
Danielgatis rembg
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Rembg CORS misconfiguration
Weaknesses CWE-346
References
Metrics cvssV4_0

{'score': 8.7, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 3, 2025, 5:55 PM
Reserved
Feb 6, 2025, 5:13 PM
Status
Analyzed
Published
Mar 3, 2025, 5:15 PM
Modified
Jun 17, 2026, 9:00 AM