{"answers":{"affected":"It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2022-39197 in the wild since at least 30 Mar 2023.","fix":"No fix has been published for CVE-2022-39197 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 20 Apr 2023.","what":"CVE-2022-39197 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Sep 2022. 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-2022-39197 and fix it if it is affected.\n\nWhat it is: CVE-2022-39197 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2022-39197 in the wild since at least 30 Mar 2023.\n\nAffected product: n/a. 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-2022-39197/ (Markdown: https://insights.sbomify.com/CVE-2022-39197/index.md)","id":"CVE-2022-39197","markdown":"https://insights.sbomify.com/CVE-2022-39197/index.md","name":"CVE-2022-39197","record":{"aliases":["GHSA-9jq3-pg7g-c4wc"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Cobalt Strike teamserver","requires_auth":"none","summary":"Remote attackers can execute HTML on the Cobalt Strike teamserver by modifying the username field in a payload, potentially compromising the server.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"cobalt_strike","vendor":"helpsystems"}],"cvss":{"score":6.1,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"An XSS (Cross Site Scripting) vulnerability was found in HelpSystems Cobalt Strike through 4.7 that allowed a remote attacker to execute HTML on the Cobalt Strike teamserver. To exploit the vulnerability, one must first inspect a Cobalt Strike payload, and then modify the username field in the payload (or create a new payload with the extracted information and then modify that username field to be malformed).","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2022-09-21","github_poc":15,"max_poc_stars":385,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-10-14T11:46:01Z","kind":"github_poc","ref":"https://github.com/its-arun/CVE-2022-39197","stars":385,"title":"CobaltStrike \u003c= 4.7.1 RCE"},{"date":"2022-09-26T08:58:21Z","kind":"github_poc","ref":"https://github.com/burpheart/CVE-2022-39197-patch","stars":315,"title":"CVE-2022-39197 漏洞补丁. CVE-2022-39197 Vulnerability Patch. "},{"date":"2022-09-22T14:39:02Z","kind":"github_poc","ref":"https://github.com/burpheart/cve-2022-39197","stars":73,"title":"cve-2022-39197  poc"},{"date":"2022-09-23T08:20:07Z","kind":"github_poc","ref":"https://github.com/xzajyjs/CVE-2022-39197-POC","stars":46,"title":"CVE-2022-39197(CobaltStrike XSS \u003c=4.7) POC"},{"date":"2023-04-28T06:31:38Z","kind":"github_poc","ref":"https://github.com/xiao-zhu-zhu/pig_CS4.4","stars":37,"title":"Cobalt Strike 4.4 猪猪版 去暗桩 去流量特征  beacon仿造真实API服务  修补CVE-2022-39197补丁"},{"date":"2022-09-26T05:49:58Z","kind":"github_poc","ref":"https://github.com/lovechoudoufu/about_cobaltstrike4.5_cdf","stars":18,"title":"cobaltstrike4.5版本破解、去除checksum8特征、bypass BeaconEye、修复错误路径泄漏stage、增加totp双因子验证、修复CVE-2022-39197等"},{"date":"2022-09-24T08:14:36Z","kind":"github_poc","ref":"https://github.com/yqcs/CSPOC","stars":17,"title":"Cobalt Strike RCE CVE-2022-39197 "},{"date":"2022-10-22T10:11:37Z","kind":"github_poc","ref":"https://github.com/TheCryingGame/CVE-2022-39197-RCE","stars":13,"title":"CVE-2022-39197 RCE POC"}],"tier":"exploited"},"has_fix":null,"headline":"Fortra Cobalt Strike Teamserver Cross-Site Scripting (XSS)","id":"CVE-2022-39197","indexable":true,"kev":{"dateAdded":"2023-03-30","dueDate":"2023-04-20","knownRansomwareCampaignUse":"Unknown","product":"Cobalt Strike","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Fortra","vulnerabilityName":"Fortra Cobalt Strike Teamserver Cross-Site Scripting (XSS) Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"Apache Dubbo Hession Deserialization Vulnerability Gadgets Bypass","id":"CVE-2022-39198"},"packages":[],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2022-39196"},"products":["n/a"],"published":"2022-09-22","related":[{"cvss_score":9.8,"headline":"Fortra Cobalt Strike User Interface Remote Code Execution","id":"CVE-2022-42948","kev_date_added":"2023-03-30","published":"2023-03-24"},{"cvss_score":7.5,"headline":"Information disclosure in n/a","id":"CVE-2022-23317","kev_date_added":null,"published":"2022-02-15"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2021-36798","kev_date_added":null,"published":"2021-08-09"}],"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"no","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Remote attackers can execute HTML on the Cobalt Strike teamserver by modifying the username field in a payload, potentially compromising the server.","url":"https://insights.sbomify.com/CVE-2022-39197/"}