GHSA-JG6Q-3QFH-R9F8

Vulnerability from github – Published: 2026-10-07 18:03 – Updated: 2026-10-07 18:03
VLAI
Summary
mppx-condition-gate: Free-access path grants on a self-declared wallet without proving control
Details

Impact

Both packages wrap an mppx payment method so that a wallet meeting on-chain conditions is granted free access instead of being charged.

The free-access path reads the payer address from credential.source — a client-supplied DID in the payment credential — asks InsumerAPI whether that address satisfies the configured conditions, and on a pass returns a successful receipt without ever calling the wrapped payment verifier. Nothing in that path establishes that the caller controls the wallet it named.

Because qualifying wallets are public chain state, an attacker does not need to guess one. Naming any qualifying address in credential.source is sufficient to obtain free access to a route that should have been paid for. An in-process cache (default TTL 300s, keyed on wallet and conditions) then re-serves the grant without re-evaluating.

mppx documents this requirement explicitly. Its type definitions describe source as "an asserted identity, not independent proof of control", and state that methods relying on it "must validate the relationship to the credential payload". These packages did not.

This is a defect in these wrapper packages, not in the attestation they consume. The attestation answers one question — does this wallet satisfy these conditions — and answered it honestly about the address it was given. Binding that address to the caller was the wrapper's responsibility.

Affected versions

Every published version of both packages is affected. The vulnerable control flow is present from the first release of each.

Patches

Fixed releases will not grant free access unless the payer has been proven, and fall through to the paid path wherever no proven payer is available.

Workarounds

Remove the condition gate from the payment method until a fixed version is installed, so all requests take the normal paid path. Alternatively, ensure the wrapped payment method has already bound the credential to the payer before the gate is consulted.

Credit

Reported by @chenshj73, who identified the issue, traced the exact code path, and proposed correct remediations.

Show details on source website

{
  "affected": [
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 2.0.3"
      },
      "package": {
        "ecosystem": "npm",
        "name": "@insumermodel/mppx-condition-gate"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "3.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 1.0.3"
      },
      "package": {
        "ecosystem": "npm",
        "name": "@insumermodel/mppx-token-gate"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.0.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-104891"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-290",
      "CWE-863"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-07T18:03:42Z",
    "nvd_published_at": "2026-10-05T16:17:06Z",
    "severity": "HIGH"
  },
  "details": "### Impact\n\nBoth packages wrap an `mppx` payment method so that a wallet meeting on-chain conditions is granted free access instead of being charged.\n\nThe free-access path reads the payer address from `credential.source` \u2014 a client-supplied DID in the payment credential \u2014 asks InsumerAPI whether that address satisfies the configured conditions, and on a pass returns a successful receipt **without ever calling the wrapped payment verifier**. Nothing in that path establishes that the caller controls the wallet it named.\n\nBecause qualifying wallets are public chain state, an attacker does not need to guess one. Naming any qualifying address in `credential.source` is sufficient to obtain free access to a route that should have been paid for. An in-process cache (default TTL 300s, keyed on wallet and conditions) then re-serves the grant without re-evaluating.\n\nmppx documents this requirement explicitly. Its type definitions describe `source` as \"an asserted identity, not independent proof of control\", and state that methods relying on it \"must validate the relationship to the credential payload\". These packages did not.\n\n**This is a defect in these wrapper packages, not in the attestation they consume.** The attestation answers one question \u2014 does this wallet satisfy these conditions \u2014 and answered it honestly about the address it was given. Binding that address to the caller was the wrapper\u0027s responsibility.\n\n### Affected versions\n\nEvery published version of both packages is affected. The vulnerable control flow is present from the first release of each.\n\n### Patches\n\nFixed releases will not grant free access unless the payer has been proven, and fall through to the paid path wherever no proven payer is available.\n\n### Workarounds\n\nRemove the condition gate from the payment method until a fixed version is installed, so all requests take the normal paid path. Alternatively, ensure the wrapped payment method has already bound the credential to the payer before the gate is consulted.\n\n### Credit\n\nReported by @chenshj73, who identified the issue, traced the exact code path, and proposed correct remediations.",
  "id": "GHSA-jg6q-3qfh-r9f8",
  "modified": "2026-10-07T18:03:42Z",
  "published": "2026-10-07T18:03:42Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/douglasborthwick-crypto/mppx-condition-gate/security/advisories/GHSA-jg6q-3qfh-r9f8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/insumerapi/mppx-condition-gate/security/advisories/GHSA-jg6q-3qfh-r9f8"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104891"
    },
    {
      "type": "WEB",
      "url": "https://github.com/insumerapi/mppx-condition-gate/commit/b1d9935a57ba6d32da49eead1bfb459ad0cd55ab"
    },
    {
      "type": "WEB",
      "url": "https://github.com/insumerapi/mppx-condition-gate/commit/ec43a2fcd443a0fa102b6d4203abed2b785bd954"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/douglasborthwick-crypto/mppx-condition-gate"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "mppx-condition-gate: Free-access path grants on a self-declared wallet without proving control"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…