CVE-2022-39197 in Helpsystems Cobalt Strike
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 n...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, requires user interaction, can impact systems beyond the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Helpsystems | Cobalt Strike | < 4.7.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2023-03-30 |
|---|---|
| Public exploit | Not confirmed |
Official 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).
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-39197 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-331355-M |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Published | 2022-09-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-79: Cross-Site Scripting (XSS)
Attacker injects malicious scripts into web pages viewed by other users, executing in the victim's browser context.
Related attack patterns (CAPEC)
CAPEC-85 AJAX Footprinting via CWE-79
CAPEC-209 XSS Using MIME Type Mismatch via CWE-79
CAPEC-588 DOM-Based XSS via CWE-79
CAPEC-591 Reflected XSS via CWE-79
CAPEC-592 Stored XSS via CWE-79
Show all 6
CAPEC-63 Cross-Site Scripting (XSS) via CWE-79
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A Cross-Site Scripting (XSS) vulnerability exists in HelpSystems Cobalt Strike versions up to 4.7, allowing a remote attacker to inject malicious HTML into the teamserver. This can lead to unauthorized access and potential further exploitation. The vulnerability has a CVSS score of 6.1 and is listed in the KEV catalog with a public proof of concept available.
The vulnerability can be exploited by a remote attacker who inspects a Cobalt Strike payload and modifies the username field to include malicious HTML. The attacker must have the ability to inspect and modify payloads, which may require some level of access or knowledge of the target environment. The exploitation requires user interaction (UI:R) to trigger the XSS attack.
Compensating controls AI-drafted, review before use
Implement input validation and sanitization for all user-provided data, especially in the username field. Use Content Security Policy (CSP) headers to restrict the execution of inline scripts.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2022-39197?
A Cross-Site Scripting (XSS) vulnerability exists in HelpSystems Cobalt Strike versions up to 4.7, allowing a remote attacker to inject malicious HTML into the teamserver. This can lead to unauthorized access and potential further exploitation. The vulnerability has a CVSS score of 6.1 and is listed in the KEV catalog with a public proof of concept available.
What is the CVSS score for CVE-2022-39197?
CVE-2022-39197 has CVSS 6.1 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. EPSS: 18.1%.
Is CVE-2022-39197 actively exploited?
Yes. CVE-2022-39197 is in the CISA known-exploited catalog (added 2023-03-30). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2022-39197?
Priority: HIGH. PSIRT: [email protected]
What systems are affected by CVE-2022-39197?
CVE-2022-39197 affects Helpsystems Cobalt Strike.
What NERC-CIP standard applies to CVE-2022-39197?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 as it allows unauthorized access to the system through a web-based interface, which could compromise the integrity and availability of critical cyber assets.
What IEC 62443 requirement maps to CVE-2022-39197?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a web application vulnerability that can be exploited to gain unauthorized access, which is a key security requirement for protecting against such attacks.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Helpsystems","product":"Cobalt Strike","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.