Reflected Cross-Site Scripting Vulnerability in Nextcloud Server
CVE-2021-22878

4.8MEDIUM

Key Information:

Vendor

Nextcloud

Vendor
CVE Published:
3 March 2021

Key facts

CVE-2021-22878 is a medium severity (CVSS 4.8) vulnerability in Nextcloud Server. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.0%, the estimated probability of exploitation in the next 30 days.

How risky is it?

  • Partly: Works over the network, but needs a login
  • No: No public exploit code yet
  • No: No attacks seen yet
  • No: Not on CISA's exploited list

Our verdict

Monitor

Low risk for most. Patch in your normal cycle.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

Read the vendor advisory ↗
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Nextcloud Server. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Monitor"
  • Its CVSS severity is medium (4.8).

What is CVE-2021-22878?

Nextcloud Server versions before 20.0.6 are susceptible to a reflected cross-site scripting (XSS) vulnerability. This issue arises from insufficient input sanitization in the OC.Notification.show function, allowing attackers to inject malicious scripts into the response. Unauthenticated users can exploit this flaw, potentially leading to unauthorized access, data manipulation, or other malicious activities. It is essential for users and administrators to upgrade to the latest version to mitigate this risk and enhance their security posture.

Affected Version(s)

Nextcloud Server Fixed in 20.0.6

References

Improper Authorization in Nextcloud Server Affects Calendar Functionality

CVE-2026-45281
NextcloudSecurity-advisories8.1HIGH

Missing Signature Verification in Nextcloud OIDC Enables User Impersonation

CVE-2026-45156
NextcloudSecurity-advisories👾8.1HIGH
View more Nextcloud vulnerabilities...

CVSS V3.1

Score:
4.8
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.