Description
The Nextcloud dialogs library (npm package @nextcloud/dialogs) before 3.1.2 insufficiently escaped text input passed to a toast. If your application displays toasts with user-supplied input, this could lead to a XSS vulnerability. The vulnerability has been patched in version 3.1.2 If you need to display HTML in the toast, explicitly pass the `options.isHTML` config flag.
Remediation
References
https://github.com/nextcloud/nextcloud-dialogs/security/advisories/GHSA-g3fq-3v3g-mh32
https://www.npmjs.com/package/%40nextcloud/dialogs
Related Vulnerabilities
CVE-2018-25049 Vulnerability in npm package email-existence
CVE-2019-0205 Vulnerability in maven package org.apache.thrift:libthrift
CVE-2017-16088 Vulnerability in npm package safe-eval
CVE-2021-4305 Vulnerability in npm package robots-txt-guard
CVE-2020-2211 Vulnerability in maven package com.elasticbox.jenkins-ci.plugins:kubernetes-ci