{"answers":{"affected":"6 open source packages ship an affected version, including @fedify/fedify.","exploited":"There is no known exploitation of CVE-2024-39687 in the wild and no public exploit code.","fix":"Upgrade @fedify/fedify to a fixed version for your release line: 0.9.2, 0.10.2 or 0.11.2.","what":"CVE-2024-39687 is a high-severity server-side request forgery vulnerability in dahlia fedify, published on 5 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-39687 and fix it if it is affected.\n\nWhat it is: CVE-2024-39687 is a high-severity server-side request forgery vulnerability in dahlia fedify, published on 5 Jul 2024. 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-2024-39687 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @fedify/fedify (npm): affected all versions; fixed in 0.9.2\n- @fedify/fedify (npm): affected all versions; fixed in 0.9.2\n- @fedify/fedify (npm): affected from 0.10.0; fixed in 0.10.2\n- @fedify/fedify (npm): affected from 0.10.0; fixed in 0.10.2\n- @fedify/fedify (npm): affected from 0.11.0; fixed in 0.11.2\n- @fedify/fedify (npm): affected from 0.11.0; fixed in 0.11.2\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-2024-39687/ (Markdown: https://insights.sbomify.com/CVE-2024-39687/index.md)","id":"CVE-2024-39687","markdown":"https://insights.sbomify.com/CVE-2024-39687/index.md","name":"CVE-2024-39687","record":{"aliases":["GHSA-p9cg-vqcc-grcx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Fedify TypeScript library","requires_auth":"none","summary":"An attacker can exploit Fedify to send requests to internal network resources via crafted ActivityPub URLs, potentially accessing sensitive internal data.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Fedify is a TypeScript library for building federated server apps powered by ActivityPub and other standards. At present, when Fedify needs to retrieve an object or activity from a remote activitypub server, it makes a HTTP request to the `@id` or other resources present within the activity it has received from the web. This activity could reference an `@id` that points to an internal IP address, allowing an attacker to send request to resources internal to the fedify server's network. This applies to not just resolution of documents containing activities or objects, but also to media URLs as well. Specifically this is a Server Side Request Forgery attack. Users should upgrade to Fedify version 0.9.2, 0.10.1, or 0.11.1 to receive a patch for this issue.","ecosystems":["npm"],"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":"Fedify vulnerable to allowing access to internal network resources","id":"CVE-2024-39687","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2024"},"n_packages":6,"n_references":3,"next":{"headline":"fishaudio/Bert-VITS2 Limited File Write in webui_preprocess.py generate_config function","id":"CVE-2024-39688"},"packages":[{"ecosystem":"npm","fixed":["0.9.2"],"introduced":["0"],"last_affected":[],"package":"@fedify/fedify","purl":null,"source":"GHSA-p9cg-vqcc-grcx"},{"ecosystem":"npm","fixed":["0.9.2"],"introduced":["0"],"last_affected":[],"package":"@fedify/fedify","purl":"pkg:npm/%40fedify/fedify","source":"GHSA-p9cg-vqcc-grcx"},{"ecosystem":"npm","fixed":["0.10.2"],"introduced":["0.10.0"],"last_affected":[],"package":"@fedify/fedify","purl":null,"source":"GHSA-p9cg-vqcc-grcx"},{"ecosystem":"npm","fixed":["0.10.2"],"introduced":["0.10.0"],"last_affected":[],"package":"@fedify/fedify","purl":"pkg:npm/%40fedify/fedify","source":"GHSA-p9cg-vqcc-grcx"},{"ecosystem":"npm","fixed":["0.11.2"],"introduced":["0.11.0"],"last_affected":[],"package":"@fedify/fedify","purl":null,"source":"GHSA-p9cg-vqcc-grcx"},{"ecosystem":"npm","fixed":["0.11.2"],"introduced":["0.11.0"],"last_affected":[],"package":"@fedify/fedify","purl":"pkg:npm/%40fedify/fedify","source":"GHSA-p9cg-vqcc-grcx"}],"prev":{"headline":"fishaudio/Bert-VITS2 Command Injection in webui_preprocess.py bert_gen function","id":"CVE-2024-39686"},"products":["fedify"],"published":"2024-07-05","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":"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":"2024-08-02","vendors":["dahlia"]},"summary":"An attacker can exploit Fedify to send requests to internal network resources via crafted ActivityPub URLs, potentially accessing sensitive internal data.","url":"https://insights.sbomify.com/CVE-2024-39687/"}