{"vuln_id":"CVE-2026-71533","aliases":["GHSA-m29v-3g7g-9c63"],"description":"Mareforma: search_claims skips verify-on-read, serving forged rows","published_at":"2026-11-18T23:17:21.337000Z","modified_at":"2026-11-19T21:45:02.263000Z","first_seen_at":"2026-11-21T19:15:19.494609Z","severity":"medium","severity_source":"nvd","cvss_score":6.8,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-347"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00085,"epss_percentile":0.00246,"nvd_status":"Deferred","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-71533"},"matched_alias":null,"items":[{"id":10723,"source":{"id":"osv","name":"OSV.dev"},"title":"GHSA-m29v-3g7g-9c63: Mareforma: search_claims skips verify-on-read, serving forged rows","summary":"Mareforma: search_claims skips verify-on-read, serving forged rows\n\n## What's wrong\n\n`search_claims` never calls `_row_verified_on_read`. Its row loop applies only the PRELIMINARY-unenrolled filter, then appends the row. `query_claims` runs the same projection but additionally re-verifies REPLICATED/ESTABLISHED signatures on read (line 4023) and drops any row that fails, per the documented tamper guarantee in the comment block above it: a high-trust row whose signature does not verify is excluded from query results entirely.\n\nSo a tampered or forged high-trust row splits the two read paths. Any process with DB write access, or an attacker copying a genuine validation envelope onto a fresh row, can flip a row to ESTABLISHED. `query()` drops it; `search()` serves it at its persisted trust level. Verified in a runtime check against a forged ESTABLISHED row:\n\n```\nquery() returns forged row: False\nsearch() returns forged row: True   # support_level ESTABLISHED, 'verified' key absent\n```\n\nThe docstring makes this worse: `search_claims` promises \"the same projection as query_claims\" and that the `include_unverified` filter \"applies identically\", so callers reasonably trust search results equally. The forged row also lacks the `verified` key entirely, so a consumer cannot tell it went unchecked.\n\n## Severity and impact\n\n**High.** The verify-on-read tamper exclusion is a stated trust guarantee, and search is a primary read surface. A forged ESTABLISHED finding that query correctly rejects is served by search as genuine, with no marker that verification was skipped.\n\n## Location\n\n- `mareforma/db/core.py:4206` search_claims row loop applies only the PRELIMINARY-unenrolled filter, then appends\n- `mareforma/db/core.py:4114` search_claims signature and docstring, which claims query_claims-identical semantics\n- `mareforma/db/core.py:4023` query_claims verify-on-read call that search_claims lacks\n\n## Fix direction\n\nMirror `query_claims`: add a `verify_cache: dict = {}` and, inside the search_claims row loop after the include_unverified check, drop rows that fail `_row_verified_on_read(conn, d, verify_cache)`. Since the verify filter can drop rows even when `include_unverified=True`, remove the single-batch break on `include_unverified` and keep batching until `limit` survivors or the FTS5 match-set is exhausted, with the same scan ceiling `query_claims` uses. Also set `single_trust_domain` / `trust_domain_root` on surviving ESTABLISHED rows if the \"same projection\" promise is to hold.\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.\n\nAffected: PyPI:mareforma\n\nFixed in: 0.3.8\n\nReferences:\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-m29v-3g7g-9c63\nhttps://nvd.nist.gov/vuln/detail/CVE-2026-71533\nhttps://github.com/mareforma/mareforma/pull/58\nhttps://github.com/mareforma/mareforma/commit/8b5291792128326a22f240123659d2754446c194\nhttps://github.com/mareforma/mareforma\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.8","url":"https://osv.dev/vulnerability/GHSA-m29v-3g7g-9c63","published_at":"2026-11-19T16:00:52Z","updated_at":"2026-11-19T16:15:03.472751Z","fetched_at":"2026-11-21T19:15:55.946131Z","severity":"medium","cvss_score":6.8,"epss":0.00085,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71533","vuln_ids":["CVE-2026-71533","GHSA-M29V-3G7G-9C63"],"tags":["osv","pypi","fix-available"],"cluster_id":2262,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/10723","html":"https://vulnwatch.ve1ve2.com/item/10723"}},{"id":2415,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-m29v-3g7g-9c63 / CVE-2026-71533: Mareforma: search_claims skips verify-on-read, serving forged rows","summary":"Mareforma: search_claims skips verify-on-read, serving forged rows\n\n## What's wrong\n\n`search_claims` never calls `_row_verified_on_read`. Its row loop applies only the PRELIMINARY-unenrolled filter, then appends the row. `query_claims` runs the same projection but additionally re-verifies REPLICATED/ESTABLISHED signatures on read (line 4023) and drops any row that fails, per the documented tamper guarantee in the comment block above it: a high-trust row whose signature does not verify is excluded from query results entirely.\n\nSo a tampered or forged high-trust row splits the two read paths. Any process with DB write access, or an attacker copying a genuine validation envelope onto a fresh row, can flip a row to ESTABLISHED. `query()` drops it; `search()` serves it at its persisted trust level. Verified in a runtime check against a forged ESTABLISHED row:\n\n```\nquery() returns forged row: False\nsearch() returns forged row: True   # support_level ESTABLISHED, 'verified' key absent\n```\n\nThe docstring makes this worse: `search_claims` promises \"the same projection as query_claims\" and that the `include_unverified` filter \"applies identically\", so callers reasonably trust search results equally. The forged row also lacks the `verified` key entirely, so a consumer cannot tell it went unchecked.\n\n## Severity and impact\n\n**High.** The verify-on-read tamper exclusion is a stated trust guarantee, and search is a primary read surface. A forged ESTABLISHED finding that query correctly rejects is served by search as genuine, with no marker that verification was skipped.\n\n## Location\n\n- `mareforma/db/core.py:4206` search_claims row loop applies only the PRELIMINARY-unenrolled filter, then appends\n- `mareforma/db/core.py:4114` search_claims signature and docstring, which claims query_claims-identical semantics\n- `mareforma/db/core.py:4023` query_claims verify-on-read call that search_claims lacks\n\n## Fix direction\n\nMirror `query_claims`: add a `verify_cache: dict = {}` and, inside the search_claims row loop after the include_unverified check, drop rows that fail `_row_verified_on_read(conn, d, verify_cache)`. Since the verify filter can drop rows even when `include_unverified=True`, remove the single-batch break on `include_unverified` and keep batching until `limit` survivors or the FTS5 match-set is exhausted, with the same scan ceiling `query_claims` uses. Also set `single_trust_domain` / `trust_domain_root` on surviving ESTABLISHED rows if the \"same projection\" promise is to hold.\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.\n\nAffected packages: pip:mareforma\nPatched: mareforma 0.3.8","url":"https://github.com/advisories/GHSA-m29v-3g7g-9c63","published_at":"2026-11-19T16:00:52Z","updated_at":"2026-11-19T16:00:53Z","fetched_at":"2026-11-21T19:15:18.416819Z","severity":"medium","cvss_score":6.8,"epss":0.00085,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"mareforma","vuln_id":"CVE-2026-71533","vuln_ids":["CVE-2026-71533","GHSA-M29V-3G7G-9C63"],"tags":["ghsa","pip","CWE-347"],"cluster_id":2262,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2415","html":"https://vulnwatch.ve1ve2.com/item/2415"}},{"id":8268,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-71533: Mareforma is a local verification layer for AI-assisted research. From 0.3.7 until 0.3.8, search_claims in mareforma/db/core.py does not call _row_verified_on_…","summary":"Mareforma is a local verification layer for AI-assisted research. From 0.3.7 until 0.3.8, search_claims in mareforma/db/core.py does not call _row_verified_on_read and therefore does not provide the same high-trust verification projection as query_claims. A forged or tampered REPLICATED or ESTABLISHED row that query_claims excludes can be returned by search_claims at its persisted trust level, and the missing verified marker prevents consumers from detecting that signature verification was skipped. The include_unverified option does not authorize this high-trust bypass. This issue is fixed in version 0.3.8.\n\nReferences:\nhttps://github.com/mareforma/mareforma/commit/8b5291792128326a22f240123659d2754446c194\nhttps://github.com/mareforma/mareforma/pull/58\nhttps://github.com/mareforma/mareforma/releases/tag/v0.3.8\nhttps://github.com/mareforma/mareforma/security/advisories/GHSA-m29v-3g7g-9c63","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-71533","published_at":"2026-11-18T23:17:21.337000Z","updated_at":"2026-11-19T21:45:02.263000Z","fetched_at":"2026-11-21T19:15:31.484051Z","severity":"medium","cvss_score":6.8,"epss":0.00085,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":null,"vuln_id":"CVE-2026-71533","vuln_ids":["CVE-2026-71533","GHSA-M29V-3G7G-9C63"],"tags":["CWE-347"],"cluster_id":2263,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8268","html":"https://vulnwatch.ve1ve2.com/item/8268"}}]}