{"answers":{"affected":"3 open source packages ship an affected version, including github.com/tiagorlampert/CHAOS. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31839 exists.","fix":"No fix has been published for CVE-2024-31839 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-31839 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Apr 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-31839 and fix it if it is affected.\n\nWhat it is: CVE-2024-31839 is a medium-severity cross-site scripting vulnerability in n/a, published on 12 Apr 2024. 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-2024-31839 exists.\n\nAffected packages and fixed versions:\n- github.com/tiagorlampert/CHAOS (Go): affected all versions; no fix listed\n- github.com/tiagorlampert/CHAOS (Go): affected all versions up to 5.0.1; no fix listed\n- github.com/tiagorlampert/CHAOS (Go): affected all versions up to 5.0.1; no fix listed\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-31839/ (Markdown: https://insights.sbomify.com/CVE-2024-31839/index.md)","id":"CVE-2024-31839","markdown":"https://insights.sbomify.com/CVE-2024-31839/index.md","name":"CVE-2024-31839","record":{"aliases":["GHSA-c5rv-hjjc-jv7m","GO-2024-2721"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"Go CHAOS library","requires_auth":"none","summary":"A remote attacker can escalate privileges via a Cross-Site Scripting vulnerability in the sendCommandHandler function of the CHAOS Go library.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"chaos","vendor":"tiagorlampert"}],"cvss":{"score":4.8,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"Cross Site Scripting vulnerability in tiagorlampert CHAOS v.5.0.1 allows a remote attacker to escalate privileges via the sendCommandHandler function in the handler.go component.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2024-04-10","github_poc":0,"max_poc_stars":null,"metasploit":1,"nuclei":1,"refs":[{"date":"2024-04-10","kind":"metasploit","ref":"exploit/linux/http/chaos_rat_xss_to_rce","stars":null,"title":"Chaos RAT XSS to RCE"},{"date":null,"kind":"nuclei","ref":"http/cves/2024/CVE-2024-31839.yaml","stars":null,"title":"CHAOS 5.0.1 'sendCommandHandler' - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":false,"headline":"tiagorlampert CHAOS vulnerable to Cross Site Scripting","id":"CVE-2024-31839","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"xss","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Information disclosure in n/a","id":"CVE-2024-31840"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/tiagorlampert/CHAOS","purl":"pkg:golang/github.com/tiagorlampert/CHAOS","source":"GO-2024-2721"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.1"],"package":"github.com/tiagorlampert/CHAOS","purl":null,"source":"GHSA-c5rv-hjjc-jv7m"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["5.0.1"],"package":"github.com/tiagorlampert/CHAOS","purl":"pkg:golang/github.com/tiagorlampert/CHAOS","source":"GHSA-c5rv-hjjc-jv7m"}],"prev":{"headline":"Other in n/a","id":"CVE-2024-31837"},"products":["n/a"],"published":"2024-04-12","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":"Go Vulnerability Database","prefix":"GO"},{"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":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["n/a"]},"summary":"A remote attacker can escalate privileges via a Cross-Site Scripting vulnerability in the sendCommandHandler function of the CHAOS Go library.","url":"https://insights.sbomify.com/CVE-2024-31839/"}