LowGHSA-8jh9-wqpf-q52c

sweetalert2 v8.19.1 and above contains hidden functionality

Published 23 Nov 2022 · Updated 24 Sept 2025

Affected package

Affected
>=8.19.1 <11.22.4
Fixed in
11.22.4
Update to the fixed version for your release line, for example:npm install sweetalert2@11.22.4

Details

sweetalert2 versions 8.19.1 and up until 9.0.0 are vulnerable to hidden functionality that was introduced by the maintainer. The package outputs audio and/or video messages that do not pertain to the functionality of the package and is not included in versions below 8.19.1.

Workaround

Users who are unable to update to the fixed version (11.22.4) can use package versions 8.19.0 and below, as they do not contain the hidden functionality.

Is GHSA-8jh9-wqpf-q52c in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected sweetalert2, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.