# CVE-2021-32733: XSS in Nextcloud Text application

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-07-12T21:05:12.000Z
- Modified: 2026-06-17T03:53:31.353Z
- Weaknesses: CWE-79
- Assigned by: GitHub_M

## Description

Nextcloud Text is a collaborative document editing application that uses Markdown. A cross-site scripting vulnerability is present in versions prior to 19.0.13, 20.0.11, and 21.0.3. The Nextcloud Text application shipped with Nextcloud server used a `text/html` Content-Type when serving files to users. Due the strict Content-Security-Policy shipped with Nextcloud, this issue is not exploitable on modern browsers supporting Content-Security-Policy. The issue was fixed in versions 19.0.13, 20.0.11, and 21.0.3. As a workaround, use a browser that has support for Content-Security-Policy.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 19.0.13; >= 20.0.0, < 20.0.11; >= 21.0.0, < 21.0.3
- nextcloud nextcloud_server: before 19.0.13; from 20.0.0 before 20.0.11; from 21.0.0 before 21.0.3

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-x4w3-jhcr-57pq> (third-party-advisory)
- <https://github.com/nextcloud/text/pull/1689> (patch, third-party-advisory)
- <https://hackerone.com/reports/1241460> (permissions-required)

## Sources

- CVE List: [CVE-2021-32733](https://www.cve.org/CVERecord?id=CVE-2021-32733), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-32733](https://nvd.nist.gov/vuln/detail/CVE-2021-32733), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32733 · Whole record: https://cve.day/CVE-2021-32733.json · Rebuilt by cve.day 2026-11-25T22:58:02.530Z
