{"answers":{"affected":"4 open source packages ship an affected version, including org.eclipse.ditto:ditto. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-5165 in the wild and no public exploit code.","fix":"Upgrade org.eclipse.ditto:ditto to a fixed version for your release line: 3.4.5 or 3.5.6.","what":"CVE-2024-5165 is a medium-severity cross-site scripting vulnerability in Eclipse Ditto, published on 23 May 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-5165 and fix it if it is affected.\n\nWhat it is: CVE-2024-5165 is a medium-severity cross-site scripting vulnerability in Eclipse Ditto, published on 23 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-5165 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.eclipse.ditto:ditto (Maven): affected from 3.0.0; fixed in 3.4.5\n- org.eclipse.ditto:ditto (Maven): affected from 3.0.0; fixed in 3.4.5\n- org.eclipse.ditto:ditto (Maven): affected from 3.5.0; fixed in 3.5.6\n- org.eclipse.ditto:ditto (Maven): affected from 3.5.0; fixed in 3.5.6\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-5165/ (Markdown: https://insights.sbomify.com/CVE-2024-5165/index.md)","id":"CVE-2024-5165","markdown":"https://insights.sbomify.com/CVE-2024-5165/index.md","name":"CVE-2024-5165","record":{"aliases":["GHSA-hjfc-6jxr-j2rx"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Eclipse Ditto UI","requires_auth":"low_privilege","summary":"Attackers can execute arbitrary scripts in victim browsers via unsanitized input in the Eclipse Ditto Explorer UI, potentially leading to session hijacking or data theft.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"eclipse","cpe":[{"product":"ditto","vendor":"eclipse"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"In Eclipse Ditto versions 3.0.0 to 3.5.5, the user input of several input fields of the Eclipse  Ditto Explorer User Interface https://eclipse.dev/ditto/user-interface.html  was not properly neutralized and thus vulnerable to both Reflected and Stored XSS (Cross Site Scripting).\n\nSeveral inputs were not persisted at the backend of Eclipse Ditto, but only in local browser storage to save settings of \"environments\" of the UI and e.g. the last performed \"search queries\", resulting in a \"Reflected XSS\" vulnerability.\n\nHowever, several other inputs were persisted at the backend of Eclipse Ditto, leading to a \"Stored XSS\" vulnerability. Those mean that authenticated and authorized users at Eclipse Ditto can persist Things in Ditto which can - when being displayed by other users also being authorized to see those Things in the Eclipse Ditto UI - cause scripts to be executed in the browser of other users.","ecosystems":["Maven"],"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":"Eclipse Ditto User Interface vulnerable to XSS due to Improper Neutralization of Input","id":"CVE-2024-5165","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":4,"n_references":8,"next":{"headline":"Insecure Direct Object Reference In Looker","id":"CVE-2024-5166"},"packages":[{"ecosystem":"Maven","fixed":["3.4.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.eclipse.ditto:ditto","purl":null,"source":"GHSA-hjfc-6jxr-j2rx"},{"ecosystem":"Maven","fixed":["3.4.5"],"introduced":["3.0.0"],"last_affected":[],"package":"org.eclipse.ditto:ditto","purl":"pkg:maven/org.eclipse.ditto/ditto","source":"GHSA-hjfc-6jxr-j2rx"},{"ecosystem":"Maven","fixed":["3.5.6"],"introduced":["3.5.0"],"last_affected":[],"package":"org.eclipse.ditto:ditto","purl":null,"source":"GHSA-hjfc-6jxr-j2rx"},{"ecosystem":"Maven","fixed":["3.5.6"],"introduced":["3.5.0"],"last_affected":[],"package":"org.eclipse.ditto:ditto","purl":"pkg:maven/org.eclipse.ditto/ditto","source":"GHSA-hjfc-6jxr-j2rx"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2024-5164"},"products":["Eclipse Ditto"],"published":"2024-05-23","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":"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":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["Eclipse Foundation"]},"summary":"Attackers can execute arbitrary scripts in victim browsers via unsanitized input in the Eclipse Ditto Explorer UI, potentially leading to session hijacking or data theft.","url":"https://insights.sbomify.com/CVE-2024-5165/"}