Vulnerability library
Security checkAugust 14, 2025

sweetalert2 contains potentially undesirable behavior

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Low severitynpmsweetalert2

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

sweetalert2 versions from 11.6.14 to before 11.22.4 have potentially undesirable behavior. The package outputs audio and/or video messages that do not pertain to the functionality of the package when run on specific tlds. This functionality is documented on the project’s readme.

Recommendation

Update the sweetalert2 package to the latest compatible version. Followings are version details:

  • Affected version(s): >= 11.6.14, < 11.22.4
  • Patched version(s): 11.22.4

References

Could your website be exposed too?

SmartScanner can check your website for sweetalert2 contains potentially undesirable behavior and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 14, 2025