{"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-25301 in the wild and no public exploit code.","fix":"Upgrade rembg to 2.0.58 or later.","what":"CVE-2025-25301 is a medium-severity server-side request forgery 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-25301 and fix it if it is affected.\n\nWhat it is: CVE-2025-25301 is a medium-severity server-side request forgery 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-25301 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-25301/ (Markdown: https://insights.sbomify.com/CVE-2025-25301/index.md)","id":"CVE-2025-25301","markdown":"https://insights.sbomify.com/CVE-2025-25301/index.md","name":"CVE-2025-25301","record":{"aliases":["GHSA-r5gx-c49x-h878","PYSEC-2025-24"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python image background removal","requires_auth":"none","summary":"Attackers can exploit the /api/remove endpoint to fetch internal network resources, leading to information disclosure.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"rembg","vendor":"danielgatis"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Rembg is a tool to remove images background. In Rembg 2.0.57 and earlier, the /api/remove 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. This issue may lead to Information Disclosure.","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 allows SSRF via /api/remove","id":"CVE-2025-25301","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Rembg CORS misconfiguration","id":"CVE-2025-25302"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.57"],"package":"rembg","purl":null,"source":"GHSA-r5gx-c49x-h878"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["2.0.57"],"package":"rembg","purl":"pkg:pypi/rembg","source":"GHSA-r5gx-c49x-h878"},{"ecosystem":"PyPI","fixed":["2.0.58"],"introduced":["0"],"last_affected":[],"package":"rembg","purl":"pkg:pypi/rembg","source":"PYSEC-2025-24"}],"prev":{"headline":"smartbanner.js rel noopener XSS vulnerability","id":"CVE-2025-25300"},"products":["rembg"],"published":"2025-03-03","related":[{"cvss_score":8.7,"headline":"Rembg CORS misconfiguration","id":"CVE-2025-25302","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":"Attackers can exploit the /api/remove endpoint to fetch internal network resources, leading to information disclosure.","url":"https://insights.sbomify.com/CVE-2025-25301/"}