{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10481 exists.","fix":"No fix has been published for CVE-2024-10481 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-10481 is a medium-severity vulnerability in comfyanonymous/comfyui, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-10481 and fix it if it is affected.\n\nWhat it is: CVE-2024-10481 is a medium-severity vulnerability in comfyanonymous/comfyui, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10481 exists.\n\nAffected product: comfyanonymous/comfyui. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-10481/ (Markdown: https://insights.sbomify.com/CVE-2024-10481/index.md)","id":"CVE-2024-10481","markdown":"https://insights.sbomify.com/CVE-2024-10481/index.md","name":"CVE-2024-10481","record":{"aliases":["GHSA-h9jx-rcv4-cgqg"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"ComfyUI web interface","requires_auth":"none","summary":"Attackers can trick authenticated users into performing unauthorized actions like file uploads via malicious websites due to missing CSRF protections.","user_interaction":"required","vuln_class":"csrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"comfyui","vendor":"comfy"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"A CSRF vulnerability exists in comfyanonymous/comfyui versions up to v0.2.2. This vulnerability allows attackers to host malicious websites that, when visited by authenticated ComfyUI users, can perform arbitrary API requests on behalf of the user. This can be exploited to perform actions such as uploading arbitrary files via the `/upload/image` endpoint. The lack of CSRF protections on API endpoints like `/upload/image`, `/prompt`, and `/history` leaves users vulnerable to unauthorized actions, which could be combined with other vulnerabilities such as stored-XSS to further compromise user sessions.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"Cross-Site Request Forgery (CSRF) in comfyanonymous/comfyui","id":"CVE-2024-10481","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"csrf","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Media Library Tools \u003c 1.5.0 - Author+ Stored XSS via SVG","id":"CVE-2024-10482"},"packages":[],"prev":{"headline":"3DPrint Lite \u003c 2.1 - Settings Update via CSRF","id":"CVE-2024-10480"},"products":["comfyanonymous/comfyui"],"published":"2025-03-20","related":[{"cvss_score":7.5,"headline":"SSRF in comfyanonymous/comfyui","id":"CVE-2024-12882","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":6.1,"headline":"Stored XSS in comfyanonymous/comfyui","id":"CVE-2024-10099","kev_date_added":null,"published":"2024-10-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-15","vendors":["comfyanonymous"]},"summary":"Attackers can trick authenticated users into performing unauthorized actions like file uploads via malicious websites due to missing CSRF protections.","url":"https://insights.sbomify.com/CVE-2024-10481/"}