{"vuln_id":"GHSA-8776-qf3h-26r3","aliases":["CVE-2026-71535"],"description":"Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path","published_at":"2026-11-19T16:07:36Z","modified_at":"2026-11-19T16:15:03.475574Z","first_seen_at":"2026-11-21T19:15:19.494562Z","severity":"high","severity_source":"ghsa","cvss_score":7.1,"cvss_vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","cwe":["CWE-347"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-8776-qf3h-26r3"},"matched_alias":null,"items":[{"id":10721,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-8776-qf3h-26r3: Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path","summary":"Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path\n\n### Summary\n\n`mareforma` 0.3.3 contains a critical integrity flaw in the REPLICATED convergence logic (`_maybe_update_replicated_unlocked()` in `mareforma/db/core.py:1300-1319`). The peer-selection SQL query that determines whether two independent claims \"agree\" on the same anchor does not verify that either claim carries a valid cryptographic signature from an enrolled validator key. Because `rekor_enabled=False` is the default and automatically sets `transparency_logged=1` at insert time, every claim — signed or not — immediately satisfies the convergence precondition. An attacker with no Mareforma key can write an unsigned claim to a shared graph, cause it to converge with a legitimate signed peer claim, and have it promoted to `REPLICATED` status. The forged `REPLICATED` row is then returned by the default trust query (`graph.query(min_support=\"REPLICATED\")`), allowing the attacker to inject false trust signals into any downstream consumer relying on `REPLICATED` as a multi-party endorsement guarantee.\n\n### Details\n\n**Root cause — `mareforma/db/core.py:1300-1319`**\n\nThe convergence function `_maybe_update_replicated_unlocked()` selects peer claims using a SQL query that filters on `status`, `unresolved`, `transparency_logged`, and `artifact_hash`, but contains no predicate on `signature_bundle` or enrolled-key identity:\n\n```python\n# mareforma/db/core.py:1300-1319\nrows = conn.execute(\n    f\"\"\"\n    SELECT DISTINCT c.claim_id, c.generated_by\n    FROM claims c, json_each(c.supports_json) j\n    WHERE j.value IN ({placeholders})\n      AND c.claim_id != ?\n      AND c.generated_by != ?\n      AND c.support_level != 'ESTABLISHED'\n      AND c.status = 'open'\n      AND c.unresolved = 0\n      AND c.transparency_logged = 1\n      AND (\n          c.artifact_hash IS NULL\n          OR ? IS NULL\n          OR c.artifact_hash = ?\n      )\n    \"\"\",\n```\n\nOnce peer rows are collected, the sink at `core.py:1324-1334` promotes all matching claim IDs — including the attacker's — to `REPLICATED` without any additional validation.\n\n**Why the preconditions are trivially satisfied**\n\n1. **`transparency_logged = 1` is set automatically.** When `rekor_enabled=False` (the library default), `core.py:1061` sets `transparency_logged = 1` immediately after insert. There is no Rekor step, so every claim becomes convergence-eligible the moment it is written.\n2. **`require_signed=False` is the default.** `mareforma/__init__.py:41` defaults `require_signed` to `False`. When the attacker opens the graph with a non-existent key path, `__init__.py:132-138` silently sets `signer = None`, enabling unsigned claim insertion.\n3. **`assert_claim()` performs no signature gate.** `_graph.py:284-291` only validates DOI resolution on the `supports` list before forwarding attacker-controlled fields to `_db.add_claim()` (`_graph.py:373-380`).\n\n**Why the forged claim surfaces in trust queries**\n\nThe default query path at `core.py:3647-3650` filters out only `PRELIMINARY` claims whose generator is not\n\nAffected: PyPI:mareforma\n\nFixed in: 0.3.7\n\nReferences:\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-8776-qf3h-26r3\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-71535\nhttps://github.com/mareforma/mareforma/pull/18\nhttps://github.com/mareforma/mareforma/commit/e1bf09e515693a7f2a2a80852b05fa66be44302e\nhttps://github.com/mareforma/mareforma\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.7","url":"https://osv.dev/vulnerability/GHSA-8776-qf3h-26r3","published_at":"2026-11-19T16:07:36Z","updated_at":"2026-11-19T16:15:03.475574Z","fetched_at":"2026-11-21T19:15:55.946129Z","severity":"high","cvss_score":7.1,"epss":0.00148,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71535","vuln_ids":["CVE-2026-71535","GHSA-8776-QF3H-26R3"],"tags":["osv","pypi","fix-available"],"cluster_id":2254,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10721","html":"https://vulnwatch.ve1ve2.com/item/10721"}},{"id":2411,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-8776-qf3h-26r3 / CVE-2026-71535: Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path","summary":"Mareforma: Unsigned Claims Can Be Promoted to REPLICATED via Missing Signature Enforcement in Convergence Path\n\n### Summary\n\n`mareforma` 0.3.3 contains a critical integrity flaw in the REPLICATED convergence logic (`_maybe_update_replicated_unlocked()` in `mareforma/db/core.py:1300-1319`). The peer-selection SQL query that determines whether two independent claims \"agree\" on the same anchor does not verify that either claim carries a valid cryptographic signature from an enrolled validator key. Because `rekor_enabled=False` is the default and automatically sets `transparency_logged=1` at insert time, every claim — signed or not — immediately satisfies the convergence precondition. An attacker with no Mareforma key can write an unsigned claim to a shared graph, cause it to converge with a legitimate signed peer claim, and have it promoted to `REPLICATED` status. The forged `REPLICATED` row is then returned by the default trust query (`graph.query(min_support=\"REPLICATED\")`), allowing the attacker to inject false trust signals into any downstream consumer relying on `REPLICATED` as a multi-party endorsement guarantee.\n\n### Details\n\n**Root cause — `mareforma/db/core.py:1300-1319`**\n\nThe convergence function `_maybe_update_replicated_unlocked()` selects peer claims using a SQL query that filters on `status`, `unresolved`, `transparency_logged`, and `artifact_hash`, but contains no predicate on `signature_bundle` or enrolled-key identity:\n\n```python\n# mareforma/db/core.py:1300-1319\nrows = conn.execute(\n    f\"\"\"\n    SELECT DISTINCT c.claim_id, c.generated_by\n    FROM claims c, json_each(c.supports_json) j\n    WHERE j.value IN ({placeholders})\n      AND c.claim_id != ?\n      AND c.generated_by != ?\n      AND c.support_level != 'ESTABLISHED'\n      AND c.status = 'open'\n      AND c.unresolved = 0\n      AND c.transparency_logged = 1\n      AND (\n          c.artifact_hash IS NULL\n          OR ? IS NULL\n          OR c.artifact_hash = ?\n      )\n    \"\"\",\n```\n\nOnce peer rows are collected, the sink at `core.py:1324-1334` promotes all matching claim IDs — including the attacker's — to `REPLICATED` without any additional validation.\n\n**Why the preconditions are trivially satisfied**\n\n1. **`transparency_logged = 1` is set automatically.** When `rekor_enabled=False` (the library default), `core.py:1061` sets `transparency_logged = 1` immediately after insert. There is no Rekor step, so every claim becomes convergence-eligible the moment it is written.\n2. **`require_signed=False` is the default.** `mareforma/__init__.py:41` defaults `require_signed` to `False`. When the attacker opens the graph with a non-existent key path, `__init__.py:132-138` silently sets `signer = None`, enabling unsigned claim insertion.\n3. **`assert_claim()` performs no signature gate.** `_graph.py:284-291` only validates DOI resolution on the `supports` list before forwarding attacker-controlled fields to `_db.add_claim()` (`_graph.py:373-380`).\n\n**Why the forged claim surfaces in trust queries**\n\nThe default query path at `core.py:3647-3650` filters out only `PRELIMINARY` claims whose generator is not\n\nAffected packages: pip:mareforma\nPatched: mareforma 0.3.7","url":"https://github.com/advisories/GHSA-8776-qf3h-26r3","published_at":"2026-11-19T16:07:36Z","updated_at":"2026-11-19T16:07:38Z","fetched_at":"2026-11-21T19:15:18.416815Z","severity":"high","cvss_score":7.1,"epss":0.00148,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71535","vuln_ids":["CVE-2026-71535","GHSA-8776-QF3H-26R3"],"tags":["ghsa","pip","CWE-347"],"cluster_id":2254,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2411","html":"https://vulnwatch.ve1ve2.com/item/2411"}},{"id":8270,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-71535: Mareforma is a local verification layer for AI-assisted research. From 0.3.0 until 0.3.7, the _maybe_update_replicated_unlocked convergence path in mareforma/d…","summary":"Mareforma is a local verification layer for AI-assisted research. From 0.3.0 until 0.3.7, the _maybe_update_replicated_unlocked convergence path in mareforma/db/core.py uses generated_by labels without requiring a valid signature_bundle from a distinct enrolled signer, so an unsigned claim written to a shared graph can converge with a signed peer and be promoted to REPLICATED. The forged trust state is returned by queries requiring REPLICATED support, allowing false multi-party endorsement signals to reach downstream consumers. This issue is fixed in version 0.3.7.\n\nReferences:\nhttps://github.com/mareforma/mareforma/commit/e1bf09e515693a7f2a2a80852b05fa66be44302e\nhttps://github.com/mareforma/mareforma/pull/18\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.7\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-8776-qf3h-26r3\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-8776-qf3h-26r3","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71535","published_at":"2026-11-18T23:17:21.620000Z","updated_at":"2026-11-19T21:45:03.303000Z","fetched_at":"2026-11-21T19:15:31.484053Z","severity":"high","cvss_score":7.1,"epss":0.00148,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-71535","vuln_ids":["CVE-2026-71535","GHSA-8776-QF3H-26R3"],"tags":["CWE-347"],"cluster_id":2255,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8270","html":"https://vulnwatch.ve1ve2.com/item/8270"}}]}