GHSA-whv6-rj84-2vh2 Cross-Site Scripting in nextcloud-vue-collections
Attackers can execute arbitrary JavaScript in victims' browsers via insecure tooltip configuration in the nextcloud-vue-collections library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is GHSA-whv6-rj84-2vh2?
GHSA-whv6-rj84-2vh2 is a cross-site scripting vulnerability in nextcloud-vue-collections, published on 4 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Versions of nextcloud-vue-collections prior to 0.4.2 are vulnerable to Cross-Site Scripting (XSS). The v-tooltip component has an insecure defaultHTML configuration that allows arbitrary JavaScript to be injected in the tooltip of a collection item. This allows attackers to execute arbitrary code in a victim's browser.
Recommendation
Upgrade to version 0.4.2 or later.
Which versions are affected by GHSA-whv6-rj84-2vh2?
2 open source packages ship an affected version, including nextcloud-vue-collections.
| Package | Affected | Fixed in |
|---|---|---|
nextcloud-vue-collections npm | All versions | 0.4.2 |
nextcloud-vue-collections npm | All versions | 0.4.2 |
How do I fix GHSA-whv6-rj84-2vh2?
Upgrade nextcloud-vue-collections to 0.4.2 or later.
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 GHSA-whv6-rj84-2vh2 being exploited?
There is no known exploitation of GHSA-whv6-rj84-2vh2 in the wild and no public exploit code.