XSS in Contacts
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution, Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-434 and CWE-79.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA security-advisories (nextcloud) Fixed in 4.0.3
Timeline
- 2026-10-02 Threatist record created from CVE-2021-39221
References
More nextcloud Contacts vulnerabilities
- TI-2020-06698 Cross-site scripting in Nextcloud Contacts CVSS 3.1MEDIUM 5.4
- TI-2020-06697 Cross-site scripting in Nextcloud Contacts CVSS 3.1MEDIUM 5.4
- TI-2025-40965 Nextcloud Contacts vulnerable to Stored XSS in contacts app via organisation and title field CVSS 3.1MEDIUM 5.4
- TI-2018-02760 Cross-site scripting in Nextcloud Contacts application CVSS 3.1MEDIUM 4.8
- TI-2023-16359 Nextcloud Contacts photos only sanitized if mime type is all lower case CVSS 3.1MEDIUM 4.3
- TI-2020-06599 A missing file type check in Nextcloud Contacts 3.2.0 allowed a malicious user to upload any file as avatars. CVSS 3.1MEDIUM 4.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences