CVE-2021-39221
CVE-2021-39221 is a medium-severity vulnerability in Nextcloud Contacts with a CVSS 3.x base score of 6.4. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: Medium (CVSS 3.x base score 6.4)
- CVSS v2: 3.5
- EPSS exploit prediction: 1% (39th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-79
- Affected product: Nextcloud Contacts
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2021-39221?
- 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.
- How severe is CVE-2021-39221?
- CVE-2021-39221 has a CVSS 3.x base score of 6.4, rated medium severity. It is exploitable over network with high attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2021-39221 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (39th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-39221?
- CVE-2021-39221 affects Nextcloud Contacts. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-39221?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- When was CVE-2021-39221 published?
- CVE-2021-39221 was published on 2021-10-25 and last updated on 2026-06-17.
References
- https://github.com/nextcloud/contacts/pull/2407
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-j6cx-mxqf-f9vc
Affected products (1)
- cpe:2.3:a:nextcloud:contacts:*:*:*:*:*:*:*:*
More vulnerabilities in Nextcloud Contacts
- CVE-2020-8281 — Medium (CVSS 5.4): A missing file type check in Nextcloud Contacts 3.3.0 allows a malicious user to upload malicious SVG files to perform…
- CVE-2020-8280 — Medium (CVSS 5.4): A missing file type check in Nextcloud Contacts 3.4.0 allows a malicious user to upload SVG files as PNG files to…
- CVE-2018-3764 — Medium (CVSS 4.8): In Nextcloud Contacts before 2.1.2, a missing sanitization of search results for an autocomplete field could lead to a…
- CVE-2020-8181 — Medium (CVSS 4.3): A missing file type check in Nextcloud Contacts 3.2.0 allowed a malicious user to upload any file as avatars.
- CVE-2025-66554 — Low (CVSS 3.5): Contacts app for Nextcloud easily syncs contacts from various devices with your Nextcloud and allows editing. Prior to…
- CVE-2023-33182: Contacts app for Nextcloud easily syncs contacts from various devices with your Nextcloud and allows editing. The…
All CVEs affecting Nextcloud Contacts →
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →