GHSA-mrr8-v49w-3333: Sweetalert2 Sweetalert2 Contains Potentially Undesirable Behavior Vulnerability

LOW
CWE-440
Published
Advisory Summary

GHSA-mrr8-v49w-3333 is a LOW sweetalert2 contains potentially undesirable behavior vulnerability (CWE-440: Expected Behavior Violation) affecting Sweetalert2 libraries in the npm ecosystem. The issue involves sweetalert2 contains potentially undesirable behavior. Remediation is available by upgrading affected packages to version 11.22.4.

GHSA-mrr8-v49w-3333 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mrr8-v49w-3333
Severity LOW
CVSS v3.1 Base Score N/A
CWE Classification CWE-440: Expected Behavior Violation
Affected Product Sweetalert2
Package Ecosystem npm
Published Date
Last Updated

How to Fix GHSA-mrr8-v49w-3333

To remediate this vulnerability, upgrade all affected Sweetalert2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sweetalert2 fixed: 11.22.4
npm install sweetalert2@11.22.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls sweetalert2

How to Check if You Are Affected

To determine whether your Node.js application is affected by GHSA-mrr8-v49w-3333, inspect your project dependencies using npm:

npm ls sweetalert2

Analyze the terminal output to locate any version of Sweetalert2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 11.22.4), your application is affected.

Note: The npm ls sweetalert2 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. In Sweetalert2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

GHSA-mrr8-v49w-3333 Affected Sweetalert2 Versions

1 component(s)
Fixed Versions:
11.22.4
Product / Package Ecosystem Affected Versions Fixed Version
sweetalert2
npm
≥ 11.6.14
< 11.22.4
11.22.4

References

Frequently Asked Questions

What is GHSA-mrr8-v49w-3333?
GHSA-mrr8-v49w-3333 is a security vulnerability in Sweetalert2 involving sweetalert2 contains potentially undesirable behavior under CWE-440: Expected Behavior Violation.
Which Sweetalert2 versions are affected?
Affected versions include releases prior to 11.22.4 across affected packages: sweetalert2.
What version fixes GHSA-mrr8-v49w-3333?
Upgrading to 11.22.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sweetalert2 affected?
Yes, sweetalert2 is affected in releases prior to 11.22.4. Upgrade your dependency to 11.22.4 or later.
What CWE is associated with GHSA-mrr8-v49w-3333?
GHSA-mrr8-v49w-3333 is classified under CWE-440: Expected Behavior Violation (A feature, API, or function does not perform according to its specification.).
How can I check npm dependencies for GHSA-mrr8-v49w-3333?
Run the dependency tree command: 'npm ls sweetalert2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mrr8-v49w-3333",
  "modified" : "2025-08-14T19:15:04Z",
  "published" : "2023-07-10T19:08:10Z",
  "aliases" : [ ],
  "summary" : "sweetalert2 contains potentially undesirable behavior",
  "details" : "`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.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "sweetalert2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "11.6.14"
      }, {
        "fixed" : "11.22.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sweetalert2/sweetalert2/pull/2847"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sweetalert2/sweetalert2/commit/7de85db5c76ba3ef5f0cdbc335bbc4a7c559e012"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sweetalert2/sweetalert2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sweetalert2/sweetalert2/releases/tag/v11.4.9"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sweetalert2/sweetalert2/tree/6d02e1095e5d9db1dfa7f0708df6fa13a1b32be3#important-notice-about-usage-of-this-software-for-ru-su-and-%D1%80%D1%84-domain-zones"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/sweetalert2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-440" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-10T19:08:10Z",
    "nvd_published_at" : null
  }
}