{"id":"GHSA-g3fq-3v3g-mh32","summary":"Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in @nextcloud/dialogs","details":"### 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.","aliases":["CVE-2021-29438"],"modified":"2026-07-08T06:28:13.166636808Z","published":"2021-04-16T19:52:58Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-04-13T18:40:52Z","nvd_published_at":"2021-04-13T20:15:00Z","cwe_ids":["CWE-79","CWE-80"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/nextcloud/nextcloud-dialogs/security/advisories/GHSA-g3fq-3v3g-mh32"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29438"},{"type":"WEB","url":"https://www.npmjs.com/package/@nextcloud/dialogs"}],"affected":[{"package":{"name":"@nextcloud/dialogs","ecosystem":"npm","purl":"pkg:npm/%40nextcloud/dialogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.1.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/04/GHSA-g3fq-3v3g-mh32/GHSA-g3fq-3v3g-mh32.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N"}]}