Skip to main content
Mallory
MediumExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-39197: Cross-site scripting in Cobalt Strike through 4.7

Published Sep 22, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS6.1Medium · v3.1
EPSS37.2%99th percentile
CISA KEVYesAdded Mar 30, 2023
In the wildActivePer CISA KEV
Vendor
Helpsystems
IdentifiersCVE-2022-39197CWE-79 · Improper Neutralization of Input…

CVE-2022-39197 is a cross-site scripting vulnerability affecting HelpSystems Cobalt Strike through version 4.7. A remote attacker can supply a malformed username field in a Cobalt Strike payload to cause attacker-controlled HTML to execute on the Cobalt Strike teamserver. Exploitation requires inspecting an existing payload and modifying its username field, or constructing a new payload using extracted information and then modifying that field.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote attacker to execute attacker-controlled HTML on the Cobalt Strike teamserver. Specific consequences involving sensitive-data disclosure, operating-system command execution, privilege escalation, or service disruption are not established.

Mitigation

If you can’t patch tonight, do this now.

Restrict access to the Cobalt Strike teamserver interface to trusted users and networks. Monitor for suspicious payload modifications and review logs for anomalous activity. Employ web application firewalls or other filtering mechanisms to block malicious input where possible.

Remediation

Patch, then assume compromise.

Apply a vendor-supported fix for CVE-2022-39197 or upgrade to a release confirmed by the vendor to include the fix. A vendor-verified minimum fixed version is not established by the available information.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit.

View more in app →
cve-2022-39197This repository contains a proof-of-concept exploit for CVE-2022-39197. The main file, poc.py, constructs a custom binary payload mimicking a Cobalt Strike beacon, encrypts it using a provided RSA public key, and sends it to a specified C2 server endpoint via an HTTP request with the payload in the Cookie header. The script includes hardcoded endpoints (http://192.168.234.100/pixel.gif as the C2 server and http://127.0.0.1/1.jpg as an image reference in the payload) and requires the user to supply a valid RSA public key. The exploit demonstrates the ability to craft and transmit beacon-like traffic, potentially for testing Cobalt Strike beacon parsing or exploiting related vulnerabilities. The repository consists of a README and the Python proof-of-concept script, with no additional files or frameworks.burpheart · Disclosed Sep 22, 2022 · python · networkPoCCVE-2022-39197-POCThis repository provides a proof-of-concept (POC) exploit for CVE-2022-39197, an XSS vulnerability in Cobalt Strike teamserver versions 4.7 and below. The exploit demonstrates how an attacker can craft a Beacon configuration with a malicious username that, when processed by the teamserver, triggers an XSS payload. The POC specifically causes the teamserver to display an attacker-controlled image, serving as a demonstration of the vulnerability's impact (potential for remote code execution via XSS). The main exploit script is `cve-2022-39197-poc.py`, which takes an image URL and a Beacon file or URL as input. It parses the Beacon configuration (using `parse_beacon_config.py` and `beacon_utils.py`), constructs a payload that includes an HTML `<img>` tag referencing the supplied image URL, and sends it to the Cobalt Strike teamserver. The repository also includes utility scripts for parsing and handling Beacon configurations, and references external tools for deeper analysis. The exploit is a POC and does not provide a weaponized payload; it is intended to demonstrate the vulnerability by causing the teamserver to render an image. The only fingerprintable endpoint in the repository is the example image URL used in the demonstration. The code is written in Python and is structured for ease of use and integration with Beacon analysis tools.xzajyjs · Disclosed Sep 23, 2022 · python · networkPoCCVE-2022-39197This repository provides a proof-of-concept (POC) exploit for CVE-2022-39197, a remote code execution vulnerability affecting Java applications that process SVG files using a vulnerable handler (such as Apache Batik). The exploit consists of a malicious Java JAR (EvilJar) containing an Exploit class that executes OS commands when triggered by an SVG event. The repository includes: - A Java project (EvilJar) that builds the malicious JAR file. The Exploit.java file contains code to detect the OS and execute a calculator application as a demonstration payload. - A Python script (cve-2022-39197.py) that uses Frida to inject a payload into a running process (e.g., beacon.exe), replacing a process entry with an HTML object referencing the malicious SVG file. - A sample SVG file (serve/evil.svg) that references the malicious JAR via a remote URL, which is intended to be served over HTTP. - Instructions in the README.md for building the JAR, serving the SVG, and executing the exploit. The main attack vector is network-based, requiring the victim to process a malicious SVG file that loads a remote Java archive. The exploit demonstrates remote code execution by launching a calculator, but the payload can be customized. The repository is structured with clear separation between the Java payload, the delivery SVG, and the Python injector script.its-arun · Disclosed Oct 14, 2022 · java · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
HelpsystemsCobalt Strikeapplication
FAQ

Frequently asked questions

Is CVE-2022-39197 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 30, 2023.
Is there a public exploit for CVE-2022-39197?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-39197, the earliest disclosed Sep 22, 2022.
Is there a patch for CVE-2022-39197?
Apply a vendor-supported fix for CVE-2022-39197 or upgrade to a release confirmed by the vendor to include the fix. A vendor-verified minimum fixed version is not established by the available information.
What products are affected by CVE-2022-39197?
Helpsystems Cobalt Strike.
How severe is CVE-2022-39197?
CVE-2022-39197 has a CVSS v3.1 score of 6.1 (Medium) and an EPSS score of 37.2% (99th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.