GHSA-59qh-fmm7-3g9q

Suggest an improvement
Source
https://github.com/advisories/GHSA-59qh-fmm7-3g9q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-59qh-fmm7-3g9q/GHSA-59qh-fmm7-3g9q.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-59qh-fmm7-3g9q
Aliases
  • CVE-2025-25302
Published
2025-03-11T21:32:43Z
Modified
2025-03-11T21:57:14.439713Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Rembg CORS misconfiguration
Details

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.

Database specific
{
    "nvd_published_at": "2025-03-03T17:15:14Z",
    "cwe_ids": [
        "CWE-346"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-11T21:32:43Z"
}
References

Affected packages

PyPI / rembg

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.0.57

Affected versions

2.*

2.0.28
2.0.29
2.0.30
2.0.31
2.0.32
2.0.33
2.0.34
2.0.35
2.0.36
2.0.37
2.0.38
2.0.39
2.0.40
2.0.41
2.0.43
2.0.44
2.0.45
2.0.46
2.0.47
2.0.48
2.0.49
2.0.50
2.0.51
2.0.52
2.0.53
2.0.54
2.0.55
2.0.56
2.0.57