# CVE-2021-39221: XSS in Contacts

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/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): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2021-10-25T19:05:10.000Z
- Modified: 2026-06-17T04:03:20.530Z
- Weaknesses: CWE-79, CWE-434
- Assigned by: GitHub_M

## Description

Nextcloud is an open-source, self-hosted productivity platform. The Nextcloud Contacts application prior to version 4.0.3 was vulnerable to a stored Cross-Site Scripting (XSS) vulnerability. For exploitation, a user would need to right-click on a malicious file and open the file in a new tab. Due the strict Content-Security-Policy shipped with Nextcloud, this issue is not exploitable on modern browsers supporting Content-Security-Policy. It is recommended that the Nextcloud Contacts application is upgraded to 4.0.3. As a workaround, one may use a browser that has support for Content-Security-Policy.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 4.0.3
- nextcloud contacts: before 4.0.3

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-j6cx-mxqf-f9vc> (third-party-advisory)
- <https://github.com/nextcloud/contacts/pull/2407> (third-party-advisory)

## Sources

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

---

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