Cross-Site Request Forgery Vulnerability in Rembg Tool
CVE-2025-25302

8.7HIGH

Key Information:

Status
Vendor
CVE Published:
3 March 2025

What is CVE-2025-25302?

The Rembg tool, used for image background removal, is affected by a critical misconfiguration in its Cross-Origin Resource Sharing (CORS) middleware. This flaw allows all origins to be reflected, enabling any website to issue cross-site requests to the Rembg server. As a result, malicious websites can potentially query APIs directly. Compounding the issue, even if authentication measures are applied, the 'allow_credentials' setting is configured to True, thereby permitting unauthorized sites to send authenticated requests. Ensuring correct CORS configuration is essential to safeguard against these vulnerabilities.

Affected Version(s)

rembg <= 2.0.57

References

CVSS V4

Score:
8.7
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.