GHSA-wfm2-rq5g-f8v5: @account kit/smart contracts @account-kit/smart-contracts Allowlist Module Bypass Vulnerability Vulnerability

MODERATE
CWE-288
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-wfm2-rq5g-f8v5
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-288: Authentication Bypass Using an Alternate Path or Channel
Affected Product @account kit/smart contracts
Package Ecosystem npm
Published Date
Last Updated

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.

@account-kit/smart-contracts fixed: 4.28.2
npm install @account-kit/smart-contracts@4.28.2
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 @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

### Summary Allowlist module contains a bypass vulnerability ### Details The logic for using an allowlist on a Modular Account V2 contained a bug that allowed session keys to bypass any allowlist configuration ### Action If 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

GHSA-wfm2-rq5g-f8v5 Affected @account kit/smart contracts Versions

1 component(s)
Fixed Versions:
4.28.2
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?
GHSA-wfm2-rq5g-f8v5 is a security vulnerability in @account kit/smart contracts involving @account-kit/smart-contracts Allowlist Module Bypass Vulnerability under CWE-288: Authentication Bypass Using an Alternate Path or Channel.
Which @account kit/smart contracts versions are affected?
Affected versions include releases prior to 4.28.2 across affected packages: @account-kit/smart-contracts.
What version fixes GHSA-wfm2-rq5g-f8v5?
Upgrading to 4.28.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @account-kit/smart-contracts affected?
Yes, @account-kit/smart-contracts is affected in releases prior to 4.28.2. Upgrade your dependency to 4.28.2 or later.
What CWE is associated with GHSA-wfm2-rq5g-f8v5?
GHSA-wfm2-rq5g-f8v5 is classified under CWE-288: Authentication Bypass Using an Alternate Path or Channel (The product requires authentication, but the product has an alternate path or channel that does not require authentication.).
How can I check npm dependencies for GHSA-wfm2-rq5g-f8v5?
Run the dependency tree command: 'npm ls @account-kit/smart-contracts'. 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-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
  }
}