{"answers":{"affected":"3 open source packages ship an affected version, including rembg. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-25302 in the wild and no public exploit code.","fix":"Upgrade rembg to 2.0.58 or later.","what":"CVE-2025-25302 is a high-severity vulnerability in danielgatis rembg, published on 3 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-25302 and fix it if it is affected.\n\nWhat it is: CVE-2025-25302 is a high-severity vulnerability in danielgatis rembg, published on 3 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-25302 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- rembg (PyPI): affected all versions up to 2.0.57; no fix listed\n- rembg (PyPI): affected all versions up to 2.0.57; no fix listed\n- rembg (PyPI): affected all versions; fixed in 2.0.58\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-25302/ (Markdown: https://insights.sbomify.com/CVE-2025-25302/index.md)","id":"CVE-2025-25302","markdown":"https://insights.sbomify.com/CVE-2025-25302/index.md","name":"CVE-2025-25302","record":{"aliases":["GHSA-59qh-fmm7-3g9q","PYSEC-2025-25"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Python image background removal","requires_auth":"none","summary":"Rembg's CORS misconfiguration allows any website to send cross-site requests, potentially exposing API data or bypassing authentication controls.","user_interaction":"not_required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rembg","vendor":"danielgatis"}],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Rembg CORS misconfiguration","id":"CVE-2025-25302","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"misconfiguration","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"Server-Side Request Forgery (SSRF) in MouseTooltipTranslator","id":"CVE-2025-25303"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.57"],"package":"rembg","purl":null,"source":"GHSA-59qh-fmm7-3g9q"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.57"],"package":"rembg","purl":"pkg:pypi/rembg","source":"GHSA-59qh-fmm7-3g9q"},{"ecosystem":"PyPI","fixed":["2.0.58"],"introduced":["0"],"last_affected":[],"package":"rembg","purl":"pkg:pypi/rembg","source":"PYSEC-2025-25"}],"prev":{"headline":"Rembg allows SSRF via /api/remove","id":"CVE-2025-25301"},"products":["rembg"],"published":"2025-03-03","related":[{"cvss_score":6.9,"headline":"Rembg allows SSRF via /api/remove","id":"CVE-2025-25301","kev_date_added":null,"published":"2025-03-03"},{"cvss_score":5.3,"headline":"Rembg has a Path Traversal via Custom Model Loading","id":"CVE-2026-40086","kev_date_added":null,"published":"2026-04-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-03","vendors":["danielgatis"]},"summary":"Rembg's CORS misconfiguration allows any website to send cross-site requests, potentially exposing API data or bypassing authentication controls.","url":"https://insights.sbomify.com/CVE-2025-25302/"}