CVE-2021-39221
NixOS vulnerability analysis and mitigation

Overview

The Nextcloud Contacts application prior to version 4.0.3 was vulnerable to a stored Cross-Site Scripting (XSS) vulnerability. The vulnerability was discovered and disclosed on October 25, 2021, affecting the Contacts component of the Nextcloud open-source, self-hosted productivity platform (Nextcloud Advisory, NVD).

Technical details

The vulnerability allowed for stored Cross-Site Scripting (XSS) attacks. For exploitation, a user would need to right-click on a malicious file and open the file in a new tab. The vulnerability was classified with CWE-434 and received a low severity rating due to the mitigating factors present in the system, particularly the strict Content-Security-Policy shipped with Nextcloud which prevented exploitation on modern browsers supporting CSP (Nextcloud Advisory).

Impact

The impact of this vulnerability was limited due to Nextcloud's built-in security measures. Due to the strict Content-Security-Policy (CSP) shipped with Nextcloud, this issue was not exploitable on modern browsers that support Content-Security-Policy. However, browsers without proper CSP support, such as Internet Explorer, remained vulnerable (Nextcloud Advisory).

Mitigation and workarounds

The primary mitigation was to upgrade the Nextcloud Contacts application to version 4.0.3. As a workaround, users could use a browser that has support for Content-Security-Policy. A list of supported browsers could be found on caniuse.com. It was noted that Internet Explorer was a notable exception as it did not support CSP properly (Nextcloud Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management