{"id":"CVE-2021-29438","aliases":["CVE-2021-29438","GHSA-g3fq-3v3g-mh32"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in @nextcloud/dialogs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe Nextcloud dialogs library before 3.1.2 did insufficiently escape text input passed to a toast. If your application displays toasts with user-supplied input, this could lead to a XSS vulnerability.\n\n_Note_: Nextcloud Server employs a strict Content Security Policy that mitigates the risk of these XSS vulnerabilities.\n\n### Patches\n\nThe 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.\n\n### Workarounds\n\nMake sure no user-supplied input flows into toasts.","format":"markdown","source":"ghsa"},{"lang":"es","text":"La biblioteca de diálogos de Nextcloud (paquete npm  @nextcloud/dialogs) versiones anteriores a 3.1.2, la entrada de texto con un escape insuficiente se pasó a un toast.&#xa0;Si su aplicación muestra toast con información suministrada por un usuario, esto podría conllevar a una vulnerabilidad de tipo XSS.&#xa0;La vulnerabilidad ha sido parcheada en la versión 3.1.2. Si necesita mostrar HTML en el toast pase explícitamente el flag de configuración \"options.isHTML\"","source":"nvd"}],"published":"2021-04-13T18:40:15.000Z","modified":"2026-07-08T06:28:13.166Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","score":4.6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-80"],"affected":[{"ranges":[{"version":"< 3.1.2","status":"affected"}],"vendor":"nextcloud","product":"nextcloud-dialogs","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.1.2"}],"ecosystem":"npm","package":"@nextcloud/dialogs","purl":"pkg:npm/%40nextcloud/dialogs","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.1.2"}],"vendor":"nextcloud/dialogs_project","product":"nextcloud/dialogs","cpe":"cpe:2.3:a:nextcloud\\/dialogs_project:nextcloud\\/dialogs:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nextcloud/nextcloud-dialogs/security/advisories/GHSA-g3fq-3v3g-mh32","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.npmjs.com/package/%40nextcloud/dialogs","tags":["x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29438","tags":["advisory"],"sources":["ghsa"]},{"url":"https://www.npmjs.com/package/@nextcloud/dialogs","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-29438","url":"https://www.cve.org/CVERecord?id=CVE-2021-29438","licence":"CVE Terms of Use","modified":"2024-08-03T22:02:51.929Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g3fq-3v3g-mh32","url":"https://github.com/advisories/GHSA-g3fq-3v3g-mh32","licence":"CC-BY-4.0","modified":"2026-07-08T06:28:13.166Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-29438","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29438","licence":"Public domain","modified":"2026-06-17T03:47:38.530Z"}],"updatedAt":"2026-11-25T22:58:00.801Z","epss":{"score":0.00703,"percentile":0.54519,"date":"2026-12-01T12:00:22.000Z"}}