Server-side Request Forgery (SSRF) Affecting rembg package, versions [,2.0.75)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-REMBG-15990989
  • published13 Apr 2026
  • disclosed10 Apr 2026
  • creditUnknown

Introduced: 10 Apr 2026

New CVE NOT AVAILABLE CWE-918  (opens in a new tab)
CWE-942  (opens in a new tab)

How to fix?

Upgrade rembg to version 2.0.75 or higher.

Overview

rembg is a Remove image background

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the /api/remove endpoint, which accepts a URL parameter and fetches external resources. An attacker can access internal network resources and retrieve sensitive image data by supplying crafted URLs to this endpoint.

CVSS Base Scores

version 4.0
version 3.1