{"answers":{"affected":"3 open source packages ship an affected version, including lnbits. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32013 exists.","fix":"Upgrade lnbits to 0.12.12 or later.","what":"CVE-2025-32013 is a critical server-side request forgery vulnerability in lnbits, published on 6 Apr 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-32013 and fix it if it is affected.\n\nWhat it is: CVE-2025-32013 is a critical server-side request forgery vulnerability in lnbits, published on 6 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-32013 exists.\n\nAffected packages and fixed versions:\n- lnbits (PyPI): affected all versions up to 0.12.12; no fix listed\n- lnbits (PyPI): affected all versions up to 0.12.12; no fix listed\n- lnbits (PyPI): affected all versions; fixed in 0.12.12\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-32013/ (Markdown: https://insights.sbomify.com/CVE-2025-32013/index.md)","id":"CVE-2025-32013","markdown":"https://insights.sbomify.com/CVE-2025-32013/index.md","name":"CVE-2025-32013","record":{"aliases":["GHSA-qp8j-p87f-c8cc","PYSEC-2025-16"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Lightning wallet system","requires_auth":"none","summary":"Attackers can exploit SSRF in LNbits LNURL authentication to access internal network resources by manipulating callback URLs.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"lnbits","vendor":"lnbits"}],"cvss":{"score":9.3,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"LNbits is a Lightning wallet and accounts system. A Server-Side Request Forgery (SSRF) vulnerability has been discovered in LNbits' LNURL authentication handling functionality. When processing LNURL authentication requests, the application accepts a callback URL parameter and makes an HTTP request to that URL using the httpx library with redirect following enabled. The application doesn't properly validate the callback URL, allowing attackers to specify internal network addresses and access internal resources.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2025-04-08","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-04-08T21:59:56Z","kind":"github_poc","ref":"https://github.com/Mohith-T/CVE-2025-32013","stars":0,"title":"Security Advisory and PoC for CVE-2025-32013"}],"tier":"weaponised"},"has_fix":true,"headline":"Server-Side Request Forgery via LNURL Authentication Callback in LNbits Lightning Network Payment System","id":"CVE-2025-32013","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"estree-util-value-to-estree allows prototype pollution in generated ESTree","id":"CVE-2025-32014"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.12.12"],"package":"lnbits","purl":null,"source":"GHSA-qp8j-p87f-c8cc"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.12.12"],"package":"lnbits","purl":"pkg:pypi/lnbits","source":"GHSA-qp8j-p87f-c8cc"},{"ecosystem":"PyPI","fixed":["0.12.12"],"introduced":["0"],"last_affected":[],"package":"lnbits","purl":"pkg:pypi/lnbits","source":"PYSEC-2025-16"}],"prev":{"headline":"Jellyfin Vulnerable to Denial of Service (DoS) via IP Spoofing","id":"CVE-2025-32012"},"products":["lnbits"],"published":"2025-04-06","related":[],"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-07","vendors":["lnbits"]},"summary":"Attackers can exploit SSRF in LNbits LNURL authentication to access internal network resources by manipulating callback URLs.","url":"https://insights.sbomify.com/CVE-2025-32013/"}