GHSA-wfm2-rq5g-f8v5: @account kit/smart contracts @account-kit/smart-contracts Allowlist Module Bypass Vulnerability Vulnerability
MODERATEGHSA-wfm2-rq5g-f8v5 is a MODERATE @account-kit/smart-contracts allowlist module bypass vulnerability vulnerability (CWE-288: Authentication Bypass Using an Alternate Path or Channel) affecting @account kit/smart contracts libraries in the npm ecosystem. The issue involves @account-kit/smart-contracts allowlist module bypass vulnerability. Remediation is available by upgrading affected packages to version 4.28.2.
GHSA-wfm2-rq5g-f8v5 at a Glance
How to Fix GHSA-wfm2-rq5g-f8v5
To remediate this vulnerability, upgrade all affected @account kit/smart contracts 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 @account-kit/smart-contracts@4.28.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @account-kit/smart-contracts
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-wfm2-rq5g-f8v5, inspect your project dependencies using npm:
npm ls @account-kit/smart-contracts
Analyze the terminal output to locate any version of @account kit/smart contracts in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.28.2), your application is affected.
Note: The npm ls @account-kit/smart-contracts 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-288: Authentication Bypass Using an Alternate Path or Channel, where the product requires authentication, but the product has an alternate path or channel that does not require authentication. In @account kit/smart contracts, 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-wfm2-rq5g-f8v5 Affected @account kit/smart contracts Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@account-kit/smart-contracts
|
npm |
≥ 4.8.0
< 4.28.2
|
4.28.2
|
References
Frequently Asked Questions
What is GHSA-wfm2-rq5g-f8v5?
Which @account kit/smart contracts versions are affected?
What version fixes GHSA-wfm2-rq5g-f8v5?
Is @account-kit/smart-contracts affected?
What CWE is associated with GHSA-wfm2-rq5g-f8v5?
How can I check npm dependencies for GHSA-wfm2-rq5g-f8v5?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wfm2-rq5g-f8v5",
"modified" : "2025-04-29T15:11:41Z",
"published" : "2025-04-29T15:11:41Z",
"aliases" : [ ],
"summary" : "@account-kit/smart-contracts Allowlist Module Bypass Vulnerability",
"details" : "### Summary\nAllowlist module contains a bypass vulnerability\n\n### Details\nThe logic for using an allowlist on a Modular Account V2 contained a bug that allowed session keys to bypass any allowlist configuration\n\n### Action\nIf you are using @aa-sdk and/or @account-kit/smart-contracts between the versions of >=4.8.0 and <4.28.1, please upgrade to 4.28.2",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@account-kit/smart-contracts"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.8.0"
}, {
"fixed" : "4.28.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/alchemyplatform/aa-sdk/security/advisories/GHSA-wfm2-rq5g-f8v5"
}, {
"type" : "WEB",
"url" : "https://github.com/alchemyplatform/aa-sdk/commit/b65bafdb9eec3a009df2cbabf09a35a76550e9d0"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/alchemyplatform/aa-sdk"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-288" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-29T15:11:41Z",
"nvd_published_at" : null
}
}