CVE-2026-71534: Mareforma Transparency_logged Trusts The Unsigned Rekor Vulnerability

MODERATE
Advisory Identifier: GHSA-xfq4-8hf9-5h43
CWE-345
Published
Advisory Summary

CVE-2026-71534 is a MODERATE transparency_logged trusts the unsigned rekor vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting Mareforma libraries in the PyPI ecosystem. The issue involves transparency_logged trusts the unsigned rekor block. Remediation is available by upgrading affected packages to version 0.3.8.

CVE-2026-71534 at a Glance

CVE Identifier CVE-2026-71534
GHSA Identifier GHSA-xfq4-8hf9-5h43
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-345: Insufficient Verification of Data Authenticity
Affected Product Mareforma
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-71534

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.

mareforma fixed: 0.3.8
pip install mareforma>=0.3.8
Verify Direct and Transitive Dependencies

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-71534, 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-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. 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

## What's wrong During restore, `transparency_logged` is recomputed as `1 if (toml_logged is not False and bundle_has_rekor) else 0`, where `bundle_has_rekor` comes only from a `rekor.uuid` field inside `signature_bundle`. That derivation is wrong in both directions. First, the rekor block is metadata attached after signing (`attach_rekor_entry` in `mareforma/signing/rekor.py` leaves the payload and signatures untouched), so it is not covered by the Ed25519 signature. A hand-edited `claims.toml` can add `"rekor": {"uuid": "x"}` to any claim's bundle and forge the "publicly witnessed by Rekor" state. The claim signature still verifies, and restore never cross-checks the block against `[rekor_inclusions]` or the log. Tampering with `claims.toml` is the exact threat model restore defends against; `_verify_claim_signatures_on_restore` checks only payload and signatures. Second, a signed claim in a graph that never used Rekor is written with `transparency_logged=1` (the column default when Rekor is disabled) but restores as 0 because its bundle has no rekor block. The convergence gate requires `transparency_logged = 1`, so post-restore peers can no longer converge to REPLICATED. With no `rekor_url` configured, `refresh_unsigned()` is a no-op and the flag stays 0 forever. Observed on the honest path: signed non-Rekor claim restores from `transparency_logged=1` to 0, and a subsequent peer stays at PRELIMINARY instead of converging. ## Severity and impact **High.** An attacker who edits `claims.toml` can mark claims Rekor-witnessed and REPLICATED-eligible without them ever having been logged. Meanwhile the common honest configuration (signed, no Rekor) has its trust state silently degraded by every catastrophic-loss restore, with no recovery path. ## Location - `mareforma/db/restore.py:376` reads `toml_logged` from the TOML and probes the bundle for a `rekor.uuid` - `mareforma/db/restore.py:385` computes `resolved_transparency` from the unsigned rekor block alone - `mareforma/db/core.py:1401` the REPLICATED convergence gate requires `c.transparency_logged = 1` ## Fix direction Do not derive `transparency_logged` from an unsigned envelope field. When a rekor block is present, require a matching, cryptographically verified `[rekor_inclusions]` entry (via `verify_rekor_inclusion` against the pinned log public key) whose hashedrekord `spec.data.hash` equals the SHA-256 of the claim's signed payload before setting 1; otherwise set 0. When the claim is signed and neither the bundle nor the graph carries Rekor coordinates, restore the write-time value: the TOML omits `transparency_logged` unless it was 0, so treat an absent flag plus no rekor bundle as 1 (the column default for non-Rekor writes). Do red/green TDD: add a regression test that fails on `main`, then make it pass. ## Quality bar SOLID, DRY, KISS. Clean, readable, well-tested code. No new errors, warnings, or test failures; the full suite stays green on all supported Python versions.

CVE-2026-71534 Affected Mareforma Versions

1 component(s)
Fixed Versions:
0.3.8
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-71534?
CVE-2026-71534 is a security vulnerability in Mareforma involving transparency_logged trusts the unsigned rekor block under CWE-345: Insufficient Verification of Data Authenticity.
Which Mareforma versions are affected?
Affected versions include releases prior to 0.3.8 across affected packages: mareforma.
What version fixes CVE-2026-71534?
Upgrading to 0.3.8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mareforma affected?
Yes, mareforma is affected in releases prior to 0.3.8. Upgrade your dependency to 0.3.8 or later.
What CWE is associated with CVE-2026-71534?
CVE-2026-71534 is classified under CWE-345: Insufficient Verification of Data Authenticity (The product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data.).
How can I check PyPI dependencies for CVE-2026-71534?
Run the dependency tree command: 'pip show mareforma'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xfq4-8hf9-5h43",
  "modified" : "2026-11-19T16:05:07Z",
  "published" : "2026-11-19T16:05:07Z",
  "aliases" : [ "CVE-2026-71534" ],
  "summary" : "Mareforma: transparency_logged trusts the unsigned rekor block",
  "details" : "## What's wrong\n\nDuring restore, `transparency_logged` is recomputed as `1 if (toml_logged is not False and bundle_has_rekor) else 0`, where `bundle_has_rekor` comes only from a `rekor.uuid` field inside `signature_bundle`. That derivation is wrong in both directions.\n\nFirst, the rekor block is metadata attached after signing (`attach_rekor_entry` in `mareforma/signing/rekor.py` leaves the payload and signatures untouched), so it is not covered by the Ed25519 signature. A hand-edited `claims.toml` can add `\"rekor\": {\"uuid\": \"x\"}` to any claim's bundle and forge the \"publicly witnessed by Rekor\" state. The claim signature still verifies, and restore never cross-checks the block against `[rekor_inclusions]` or the log. Tampering with `claims.toml` is the exact threat model restore defends against; `_verify_claim_signatures_on_restore` checks only payload and signatures.\n\nSecond, a signed claim in a graph that never used Rekor is written with `transparency_logged=1` (the column default when Rekor is disabled) but restores as 0 because its bundle has no rekor block. The convergence gate requires `transparency_logged = 1`, so post-restore peers can no longer converge to REPLICATED. With no `rekor_url` configured, `refresh_unsigned()` is a no-op and the flag stays 0 forever. Observed on the honest path: signed non-Rekor claim restores from `transparency_logged=1` to 0, and a subsequent peer stays at PRELIMINARY instead of converging.\n\n## Severity and impact\n\n**High.** An attacker who edits `claims.toml` can mark claims Rekor-witnessed and REPLICATED-eligible without them ever having been logged. Meanwhile the common honest configuration (signed, no Rekor) has its trust state silently degraded by every catastrophic-loss restore, with no recovery path.\n\n## Location\n\n- `mareforma/db/restore.py:376` reads `toml_logged` from the TOML and probes the bundle for a `rekor.uuid`\n- `mareforma/db/restore.py:385` computes `resolved_transparency` from the unsigned rekor block alone\n- `mareforma/db/core.py:1401` the REPLICATED convergence gate requires `c.transparency_logged = 1`\n\n## Fix direction\n\nDo not derive `transparency_logged` from an unsigned envelope field. When a rekor block is present, require a matching, cryptographically verified `[rekor_inclusions]` entry (via `verify_rekor_inclusion` against the pinned log public key) whose hashedrekord `spec.data.hash` equals the SHA-256 of the claim's signed payload before setting 1; otherwise set 0.\n\nWhen the claim is signed and neither the bundle nor the graph carries Rekor coordinates, restore the write-time value: the TOML omits `transparency_logged` unless it was 0, so treat an absent flag plus no rekor bundle as 1 (the column default for non-Rekor writes).\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:N/PR:L/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/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-xfq4-8hf9-5h43"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-71534"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/pull/58"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/commit/cccbf4eafd3c34b20b1686f12c0cad76c87566ae"
  }, {
    "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-345" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:05:07Z",
    "nvd_published_at" : "2026-11-18T23:17:21Z"
  }
}