CVE-2026-71500: Mareforma Invalidated Claims Still Promote To Vulnerability
MODERATECVE-2026-71500 is a MODERATE invalidated claims still promote to vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Mareforma libraries in the PyPI ecosystem. The issue involves invalidated claims still promote to replicated. Remediation is available by upgrading affected packages to version 0.3.8.
CVE-2026-71500 at a Glance
How to Fix CVE-2026-71500
To remediate this vulnerability, upgrade all affected Mareforma dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mareforma>=0.3.8
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mareforma
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-71500, inspect your installed packages using pip:
pip show mareforma
Analyze the terminal output to locate any version of Mareforma in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.8), your application is affected.
Note: The pip show mareforma command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In Mareforma, 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
CVE-2026-71500 Affected Mareforma Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mareforma
|
PyPI |
≥ 0.3.0
< 0.3.8
|
0.3.8
|
References
Frequently Asked Questions
What is CVE-2026-71500?
Which Mareforma versions are affected?
What version fixes CVE-2026-71500?
Is mareforma affected?
What CWE is associated with CVE-2026-71500?
How can I check PyPI dependencies for CVE-2026-71500?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rgg9-956j-3378",
"modified" : "2026-11-19T16:04:43Z",
"published" : "2026-11-19T16:04:43Z",
"aliases" : [ "CVE-2026-71500" ],
"summary" : "Mareforma: invalidated claims still promote to REPLICATED",
"details" : "## What's wrong\n\n`_maybe_update_replicated_unlocked` never checks `t_invalid`, so a claim that a signed contradiction verdict has marked invalid can still climb to REPLICATED through convergence detection, and it pulls an honest peer up with it.\n\nThree gaps line up:\n\n- The new-claim short-circuit reads only `status` and `asserter_keyid` (`core.py:1339-1352`); an invalidated but still-`open` new claim passes.\n- The candidate-peer SELECT filters `status = 'open'`, `unresolved = 0`, and `transparency_logged = 1` but has no `t_invalid` predicate (`core.py:1390-1410`), so an invalidated existing claim qualifies as a convergence partner.\n- The promotion UPDATE gates only on `status = 'open'` (`core.py:1422-1426`), leaving a TOCTOU window even after the SELECT is fixed.\n\nA signed contradiction verdict is meant to be terminal for the trust ladder: `validate_claim` refuses to promote a `t_invalid` claim to ESTABLISHED, and `record_replication_verdict` already gates its promotion UPDATE on `t_invalid IS NULL`. Convergence promotion is the one path that ignores the verdict. Reproduced at runtime: contradict claim X (t_invalid set, still PRELIMINARY), then assert peer Y sharing X's ESTABLISHED anchor; both X and Y land at REPLICATED, with X's `t_invalid` still set.\n\n## Severity and impact\n\n**High.** A refuted claim re-enters the trust ladder at REPLICATED after its contradiction, and it serves as the corroborating peer that promotes an honest claim. Both outcomes contradict the documented refutation model, and REPLICATED is the input to further validation.\n\n## Location\n\n- `mareforma/db/core.py:1339` new-claim short-circuit checks `status` and `asserter_keyid` but not `t_invalid`\n- `mareforma/db/core.py:1390` candidate-peer SELECT WHERE clause has no `t_invalid IS NULL` predicate\n- `mareforma/db/core.py:1422` promotion UPDATE gates on `status = 'open'` only, reopening the window between SELECT and UPDATE\n\n## Fix direction\n\nTreat `t_invalid` the way the neighboring code already does. Extend the new-claim short-circuit to also read `t_invalid` and return when it is set. Add `AND c.t_invalid IS NULL` to the candidate-peer SELECT. Add `AND t_invalid IS NULL` to the promotion UPDATE's WHERE clause so the row-level lock closes the TOCTOU window, matching the gate `record_replication_verdict` already applies at `core.py:3539`.\n\nDo red/green TDD: add a regression test that fails on `main`, then make it pass.\n\n## Quality bar\n\nSOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mareforma"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.0"
}, {
"fixed" : "0.3.8"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mareforma/mareforma/security/advisories/GHSA-rgg9-956j-3378"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-71500"
}, {
"type" : "WEB",
"url" : "https://github.com/mareforma/mareforma/pull/58"
}, {
"type" : "WEB",
"url" : "https://github.com/mareforma/mareforma/commit/c9d8922132d916e4fd013890cb4e17921e00065e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mareforma/mareforma"
}, {
"type" : "WEB",
"url" : "https://github.com/mareforma/mareforma/releases/tag/v0.3.8"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-754" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-11-19T16:04:43Z",
"nvd_published_at" : "2026-11-18T23:17:21Z"
}
}