CVE-2021-22878 Cross-site scripting in Nextcloud Server
Attackers can execute arbitrary scripts in user browsers via reflected XSS in Nextcloud Server notifications, potentially leading to session hijacking.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-22878?
CVE-2021-22878 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 3 Mar 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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`.
Weakness: CWE-79
Which versions are affected by CVE-2021-22878?
It affects 2 products.
Products include Fedoraproject Fedora, Nextcloud Nextcloud Server.
How do I fix CVE-2021-22878?
No fix has been published for CVE-2021-22878 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-22878 being exploited?
There is no known exploitation of CVE-2021-22878 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-3qm7-9jrc-h4gp.