mediumCVSS 4.3Vulnerability

GHSA-55v6-g8pm-pw4c

# GitHub Security Lab (GHSL) Vulnerability Report, rembg: `GHSL-2024-161`, `GHSL-2024-162` The [GitHub Security Lab](https://securitylab.github.com) team has identified potential security vulnerabilities in [rembg](https://github.com/danielgatis/rembg). We are committed to working with you to help resolve these issues. In this report you will find everything you need to effectively coordinate a resolution of these issues with the GHSL team. If at any point you have concerns or questions about this process, please do not hesitate to reach out to us at `[email protected]` (please include `GHSL-2024-161` or `GHSL-2024-162` as a reference). See also [this blog post](https://github.blog/2022-04-22-removing-the-stigma-of-a-cve/) written by GitHub's Advisory Curation team which explains what CVEs and advisories are, why they are important to track vulnerabilities and keep downstream users informed, the CVE assigning process, and how they are used to keep open source software secure. If you are _NOT_ the correct point of contact for this report, please let us know! ## Summary rembg server is vulnerable to Server-Side Request Forgery (SSRF) and a weak default CORS configuration, which may allow an attacker website to send requests to servers on the internal network and view image responses. ## Project rembg ## Tested Version [v2.0.57](https://github.com/danielgatis/rembg/releases/tag/v2.0.57) ## Details ### Issue 1: SSRF via `/api/remove` (`GHSL-2024-161`) The [`/api/remove`](https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L237) endpoint takes a URL query parameter that allows an image to be fetched, processed and returned. An attacker may be able to query this endpoint to view pictures hosted on the internal network of the rembg server. ```python async def get_index( url: str = Query( default=..., description="URL of the image that has to be processed." ),

Properties

ghsa_id
GHSA-55v6-g8pm-pw4c
severity
medium
summary
rembg server is vulnerable to Server-Side Request Forgery (SSRF) and a weak default CORS configuration
cvss_score
4.3
cve_id
GHSA-55v6-g8pm-pw4c
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
is_ghsa_only
true
ghsa_published
2026-04-10T22:09:15Z
source_url
https://github.com/advisories/GHSA-55v6-g8pm-pw4c
ghsa_updated
2026-04-10T22:09:17Z

Related Entities (4)

VULNERABLE_TO (1)

[Software]pip/rembg

AFFECTS (1)

[Software]pip/rembg

HAS_WEAKNESS (1)

[Weakness]Server-Side Request Forgery (SSRF)

REPORTED_BY (1)

[Source]GitHub Advisory Database

Explore deeper with Ninja Signal's threat intelligence graph

GHSA-55v6-g8pm-pw4c (CVSS 4.3) — Ninja Signal Threat Intelligence | Ninja Signal