GHSA-mrr8-v49w-3333: Sweetalert2 Sweetalert2 Contains Potentially Undesirable Behavior Vulnerability
LOWGHSA-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
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.
npm install sweetalert2@11.22.4
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
GHSA-mrr8-v49w-3333 Affected Sweetalert2 Versions
1 component(s)| 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?
Which Sweetalert2 versions are affected?
What version fixes GHSA-mrr8-v49w-3333?
Is sweetalert2 affected?
What CWE is associated with GHSA-mrr8-v49w-3333?
How can I check npm dependencies for GHSA-mrr8-v49w-3333?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}