Advisory

GHSA-g3fq-3v3g-mh32

Also known as: CVE-2021-29438

Summary

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

Details

Impact

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

_Note_: Nextcloud Server employs a strict Content Security Policy that mitigates the risk of these XSS vulnerabilities.

Patches

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.

Workarounds

Make sure no user-supplied input flows into toasts.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-04-16 19:52 UTC
Modified
2026-07-08 06:28 UTC

Affected packages and fixes

@nextcloud/dialogs

npm · All systems

Affected

  • introduced 0, fixed 3.1.2 (semver)

Fixed versions

3.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences