# CVE-2021-29438: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in @nextcloud/dialogs

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.70%, higher than 54% of CVEs (2026-12-01)
- Published: 2021-04-13T18:40:15.000Z
- Modified: 2026-07-08T06:28:13.166Z
- Also known as: GHSA-g3fq-3v3g-mh32
- Weaknesses: CWE-79, CWE-80
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nextcloud nextcloud-dialogs: < 3.1.2
- @nextcloud/dialogs (npm): before 3.1.2
- nextcloud/dialogs_project nextcloud/dialogs: before 3.1.2

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://github.com/nextcloud/nextcloud-dialogs/security/advisories/GHSA-g3fq-3v3g-mh32> (third-party-advisory, web)
- <https://www.npmjs.com/package/%40nextcloud/dialogs>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-29438> (advisory)
- <https://www.npmjs.com/package/@nextcloud/dialogs> (web)

## Sources

- CVE List: [CVE-2021-29438](https://www.cve.org/CVERecord?id=CVE-2021-29438), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-g3fq-3v3g-mh32](https://github.com/advisories/GHSA-g3fq-3v3g-mh32), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-29438](https://nvd.nist.gov/vuln/detail/CVE-2021-29438), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-29438 · Whole record: https://cve.day/CVE-2021-29438.json · Rebuilt by cve.day 2026-11-25T22:58:00.801Z
