# CVE-2026-104891: mppx-condition-gate: Free-access path grants on a self-declared wallet without proving control


- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Fix available:** Yes
- **Published:** 5 Oct 2026
- **Updated:** 5 Oct 2026
- **Also known as:** GHSA-jg6q-3qfh-r9f8

## What is CVE-2026-104891?

CVE-2026-104891 is a high-severity vulnerability in @insumermodel mppx-condition-gate, published on 5 Oct 2026. 

### Official description

mppx-condition-gate provides conditional free-access wrappers for mppx payment methods. Prior to @insumermodel/mppx-condition-gate 3.0.0 and @insumermodel/mppx-token-gate 1.0.4, the packages read a wallet address from the client-supplied credential.source, checked whether that public address met configured on-chain conditions, and returned a successful free-access receipt without invoking the wrapped payment verifier or proving that the caller controlled the wallet. An unauthenticated attacker could name any qualifying wallet and obtain content that should require payment, and cached grants could be reused for the configured cache lifetime. The corrected packages prevent free-access authorization unless payer control has been established. These issues are fixed in @insumermodel/mppx-condition-gate 3.0.0 and @insumermodel/mppx-token-gate 1.0.4.

Weakness: CWE-863 (Incorrect Authorization), CWE-290 (Authentication Bypass by Spoofing)

## Which versions are affected by CVE-2026-104891?

4 open source packages ship an affected version, including @insumermodel/mppx-condition-gate and @insumermodel/mppx-token-gate.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `@insumermodel/mppx-condition-gate` | npm | All versions | 3.0.0 |
| `@insumermodel/mppx-condition-gate` | npm | All versions | 3.0.0 |
| `@insumermodel/mppx-token-gate` | npm | All versions | 1.0.4 |
| `@insumermodel/mppx-token-gate` | npm | All versions | 1.0.4 |

## How do I fix CVE-2026-104891?

Upgrade @insumermodel/mppx-condition-gate to 3.0.0 or later.

## Is CVE-2026-104891 being exploited?

There is no known exploitation of CVE-2026-104891 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-104891 and fix it if it is affected.

What it is: CVE-2026-104891 is a high-severity vulnerability in @insumermodel mppx-condition-gate, published on 5 Oct 2026. 
Exploitation: There is no known exploitation of CVE-2026-104891 in the wild and no public exploit code.

Affected packages and fixed versions:
- @insumermodel/mppx-condition-gate (npm): affected all versions; fixed in 3.0.0
- @insumermodel/mppx-condition-gate (npm): affected all versions; fixed in 3.0.0
- @insumermodel/mppx-token-gate (npm): affected all versions; fixed in 1.0.4
- @insumermodel/mppx-token-gate (npm): affected all versions; fixed in 1.0.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-104891/ (Markdown: https://insights.sbomify.com/CVE-2026-104891/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-104891
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-104891
- OSV: https://osv.dev/vulnerability/CVE-2026-104891

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-104891/
Summaries are generated and may contain mistakes; the official description above is the record.
