{"id":"CVE-2021-29438","published":"2021-04-13T18:40:15Z","modified":"2024-08-03T22:02:51Z","title":"Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in @nextcloud/dialogs","vendor":"nextcloud","product":"nextcloud-dialogs","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00703,"percentile":0.54185,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"references":[{"url":"https://github.com/nextcloud/nextcloud-dialogs/security/advisories/GHSA-g3fq-3v3g-mh32","tags":["x_refsource_CONFIRM"]},{"url":"https://www.npmjs.com/package/%40nextcloud/dialogs","tags":["x_refsource_MISC"]}],"priority":{"score":14.1,"factors":[{"name":"EPSS percentile","points":10.84},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"nextcloud","affectedVersions":[{"vendor":"nextcloud","product":"nextcloud-dialogs","versions":["< 3.1.2"]}],"affected":[{"ecosystem":"npm","package":"@nextcloud/dialogs","vulnerableRanges":["<3.1.2"],"patched":["3.1.2"],"from":["GHSA-g3fq-3v3g-mh32"],"provenance":"source"}],"summary":{"text":"The @nextcloud/dialogs npm library (nextcloud-dialogs) before 3.1.2 insufficiently escapes text passed to its toast notifications, enabling cross-site scripting when an application shows toasts containing user-supplied input. An attacker with low-privilege access to the application can inject script that executes in another user's browser, but this requires that user to interact with the page and only applies where the application passes untrusted input to toasts without the HTML option being explicitly enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:48Z"},"euvd":{"id":"EUVD-2021-0821","exploited":false,"provenance":"source"}}