id: PYSEC-2025-25 modified: 2025-04-09T17:27:27.532849Z published: 2025-03-03T17:15:14Z aliases: - CVE-2025-25302 - GHSA-59qh-fmm7-3g9q 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. affected: - package: ecosystem: PyPI name: rembg purl: pkg:pypi/rembg ranges: - type: ECOSYSTEM events: - introduced: "0" - fixed: 2.0.58 versions: - 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 severity: - type: CVSS_V3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N references: - type: ADVISORY url: https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ - type: EVIDENCE url: https://securitylab.github.com/advisories/GHSL-2024-161_GHSL-2024-162_rembg/ - type: WEB url: https://github.com/danielgatis/rembg/blob/d1e00734f8a996abf512a3a5c251c7a9a392c90a/rembg/commands/s_command.py#L93 - type: ADVISORY url: https://github.com/advisories/GHSA-59qh-fmm7-3g9q