# CVE-2021-39221: XSS in Contacts

- Priority: **Routine**
- Reason: Not severe (CVSS 6.4, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-10-25 · Modified: 2024-08-04
- Record: https://cvemate.com/vulnerability/CVE-2021-39221 · JSON: https://cvemate.com/vulnerability/CVE-2021-39221/json

## Description

```text
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.
```

## Signals

- CVSS: 6.4 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.521%, percentile 45.761%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

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

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-j6cx-mxqf-f9vc>
- <https://github.com/nextcloud/contacts/pull/2407>

---

Data as of 2026-12-05T04:45:23.377Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
