CVE-2021-32679: Nextcloud Server - Stored XSS
- Cve: CVE-2021-32679
- Name: Nextcloud Server - Stored XSS
- Description: Nextcloud Server is a Nextcloud package that handles data storage. In versions prior to 19.0.13, 20.0.11, and 21.0.3, filenames where not escaped by default in controllers using `DownloadResponse`. When a user-supplied filename was passed unsanitized into a `DownloadResponse`, this could be used to trick users into downloading malicious files with a benign file extension. This would show in UI behaviours where Nextcloud applications would display a benign file extension (e.g. JPEG), but the file will actually be downloaded with an executable file extension. The vulnerability is patched in versions 19.0.13, 20.0.11, and 21.0.3. Administrators of Nextcloud instances do not have a workaround available, but developers of Nextcloud apps may manually escape the file name before passing it into `DownloadResponse`.
- Impact: Attackers can deceive users into downloading malicious files disguised with benign extensions, potentially leading to malware execution on user systems.
- Remediation: Update to versions 19.0.13, 20.0.11, or 21.0.3 or later.
- Vulnerability type: stored_xss
- Vulnerability impact: client_script_exec
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.0137
- Epss percentile: 0.7262
- Assignee: [email protected]
- Published at: 2021-07-12T13:15:08Z
- Age in days: 1961
- Modified at: 2026-06-17T03:53:24Z
- Patch available: yes
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32679
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-116 | Improper Encoding or Escaping of Output |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nextcloud:nextcloud_server | >= 21.0.0, < 21.0.3; >= 20.0.0, < 20.0.11; < 19.0.13 | no | nvd | /v1/products/nextcloud/nextcloud_server |
| fedoraproject:fedora | = 34, = 33 | no | nvd | /v1/products/fedoraproject/fedora |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nextcloud/server | pull | yes | /v1/repositories/nextcloud/server |
| nextcloud/security-advisories | security_advisory | yes | /v1/repositories/nextcloud/security-advisories |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Hackerone reports: 2
- Exposed hosts: 110639
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since