GHSA-457r-cqc8-9vj9: Sweetalert2 Sweetalert2 V10.16.10 And Above Contains Vulnerability
LOWGHSA-457r-cqc8-9vj9 is a LOW sweetalert2 v10.16.10 and above contains vulnerability (CWE-912: Hidden Functionality) affecting Sweetalert2 libraries in the npm ecosystem. The issue involves sweetalert2 v10.16.10 and above contains hidden functionality. Remediation is available by upgrading affected packages to version 11.22.4.
GHSA-457r-cqc8-9vj9 at a Glance
How to Fix GHSA-457r-cqc8-9vj9
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-457r-cqc8-9vj9, 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-912: Hidden Functionality, where the product contains functionality that is not documented, not part of the specification, and not accessible through an interface or command sequence that is obvious to the product's users or administrators. 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-457r-cqc8-9vj9 Affected Sweetalert2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
sweetalert2
|
npm |
≥ 10.16.10
< 11.22.4
|
11.22.4
|
References
Frequently Asked Questions
What is GHSA-457r-cqc8-9vj9?
Which Sweetalert2 versions are affected?
What version fixes GHSA-457r-cqc8-9vj9?
Is sweetalert2 affected?
What CWE is associated with GHSA-457r-cqc8-9vj9?
How can I check npm dependencies for GHSA-457r-cqc8-9vj9?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-457r-cqc8-9vj9",
"modified" : "2025-08-25T17:22:26Z",
"published" : "2022-11-23T15:39:50Z",
"aliases" : [ ],
"summary" : "sweetalert2 v10.16.10 and above contains hidden functionality",
"details" : "`sweetalert2` versions 10.16.10 and up until 11.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 10.0.0 - 10.16.9.\n\n### Workaround\nUse a version 10.0.0 - 10.16.9 of the package until the maintainer releases a fix.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "sweetalert2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "10.16.10"
}, {
"fixed" : "11.22.4"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 11.0.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sweetalert2/sweetalert2"
}, {
"type" : "WEB",
"url" : "https://github.com/sweetalert2/sweetalert2/releases/tag/v11.4.9"
}, {
"type" : "WEB",
"url" : "https://www.npmjs.com/package/sweetalert2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-912" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2022-11-23T15:39:50Z",
"nvd_published_at" : null
}
}