# CVE-2021-22878: Nextcloud Server prior to 20.0.6 is vulnerable to reflected cross-site scripting (XSS) due to lack of sanitization in OC.Notification.show.

- Severity: Medium 4.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.07%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-03T17:39:51.000Z
- Modified: 2026-06-17T03:37:56.027Z
- Weaknesses: CWE-79
- Assigned by: hackerone

## Description

Nextcloud Server prior to 20.0.6 is vulnerable to reflected cross-site scripting (XSS) due to lack of sanitization in `OC.Notification.show`.

(As written by CVE List.)

## Affected

- Nextcloud Server: Fixed in 20.0.6
- nextcloud nextcloud_server: before 20.0.6
- fedoraproject fedora: 34

## Every score

- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://hackerone.com/reports/896522> (exploit, issue-tracking, third-party-advisory)
- <https://nextcloud.com/security/advisory/?id=NC-SA-2021-005> (vendor-advisory)
- <https://github.com/nextcloud/server/pull/25234> (patch, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/L6BO6P6MP2MOWA6PZRXX32PLWPXN5O4S/> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-22878](https://www.cve.org/CVERecord?id=CVE-2021-22878), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-22878](https://nvd.nist.gov/vuln/detail/CVE-2021-22878), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-22878 · Whole record: https://cve.day/CVE-2021-22878.json · Rebuilt by cve.day 2026-11-25T22:58:00.132Z
