CVE-2026-71536: Mareforma Verify_bundle Never Checks A Per-claim Vulnerability

HIGH
Advisory Identifier: GHSA-hxh5-gp44-rc6p
CWE-347
Published
Advisory Summary

CVE-2026-71536 is a HIGH verify_bundle never checks a per-claim vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Mareforma libraries in the PyPI ecosystem. The issue involves verify_bundle never checks a per-claim signature. Remediation is available by upgrading affected packages to version 0.3.8.

CVE-2026-71536 at a Glance

CVE Identifier CVE-2026-71536
GHSA Identifier GHSA-hxh5-gp44-rc6p
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-347: Improper Verification of Cryptographic Signature
Affected Product Mareforma
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-71536

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-71536, 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-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for 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 `verify_bundle` documents that it verifies "a bundle's DSSE envelope AND each per-claim signature", lists "per-claim signature failure" among its raised errors, and promises that partial verification never surfaces "an authenticated bundle that contains some invalid claims" as success. The code does not do this. The JSON-LD predicate built by `JSONLDExporter._claim_node` carries no signature material (there is no `signatureBundle` field on the node), so the verify loop has nothing cryptographic to check per claim. It only re-derives each claim's canonical-statement digest from the node fields and compares it to the signed subject list: ```python chain_input = _signing.canonical_statement({...node fields...}, node.get("evidence") or {}) expected = hashlib.sha256(chain_input).hexdigest() if subjects[subject_name] != expected: raise BundleVerificationError(...) ``` That digest check is self-referential: the exporter signs both the subject digests and the predicate nodes with the same key. It confirms the bundle is internally consistent as built, not that each claim's purported asserter ever validly signed it. The existing test `test_tampered_claim_text_in_predicate_fails` asserts a "digest mismatch", confirming digest-only verification is the actual contract. ## Severity and impact **Medium.** All trust in a bundle collapses to the single exporter key. Whoever holds it (or a malicious exporter) can emit a bundle containing claims whose asserter signatures are missing, invalid, or forged, and `verify_bundle` returns success. A relying party reading the docstring believes per-claim authenticity was verified when it was not. Security-sensitive because this is the trust boundary the SCITT-style export exists to provide. ## Location - `mareforma/export_bundle.py:20` module docstring claims verification checks "every per-claim signature inside predicate" - `mareforma/export_bundle.py:183` `verify_bundle` docstring promises per-claim signature verification and a per-claim signature failure error - `mareforma/export_bundle.py:254` verify loop only recomputes and compares canonical-statement digests - `mareforma/exporters/jsonld.py:178` `_claim_node` emits no signature field, so the predicate carries nothing to verify per claim ## Fix direction Two honest options. Either export each claim's signature bundle in the JSON-LD predicate and have `verify_bundle` cryptographically verify it (including the claim_id and subject binding) against the claim's asserter or validator key, raising on the first failure as documented. Or, if per-claim verification is out of scope for the bundle format, correct the module docstring and the `verify_bundle` docstring to state exactly what is verified: the bundle-level DSSE signature plus internal subject-digest consistency, with per-claim asserter signatures explicitly not checked. 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-71536 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-71536?
CVE-2026-71536 is a security vulnerability in Mareforma involving verify_bundle never checks a per-claim signature under CWE-347: Improper Verification of Cryptographic Signature.
Which Mareforma versions are affected?
Affected versions include releases prior to 0.3.8 across affected packages: mareforma.
What version fixes CVE-2026-71536?
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-71536?
CVE-2026-71536 is classified under CWE-347: Improper Verification of Cryptographic Signature (The product does not verify, or incorrectly verifies, the cryptographic signature for data.).
How can I check PyPI dependencies for CVE-2026-71536?
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-hxh5-gp44-rc6p",
  "modified" : "2026-11-19T16:03:39Z",
  "published" : "2026-11-19T16:03:39Z",
  "aliases" : [ "CVE-2026-71536" ],
  "summary" : "Mareforma: verify_bundle never checks a per-claim signature",
  "details" : "## What's wrong\n\n`verify_bundle` documents that it verifies \"a bundle's DSSE envelope AND each per-claim signature\", lists \"per-claim signature failure\" among its raised errors, and promises that partial verification never surfaces \"an authenticated bundle that contains some invalid claims\" as success. The code does not do this. The JSON-LD predicate built by `JSONLDExporter._claim_node` carries no signature material (there is no `signatureBundle` field on the node), so the verify loop has nothing cryptographic to check per claim. It only re-derives each claim's canonical-statement digest from the node fields and compares it to the signed subject list:\n\n```python\nchain_input = _signing.canonical_statement({...node fields...}, node.get(\"evidence\") or {})\nexpected = hashlib.sha256(chain_input).hexdigest()\nif subjects[subject_name] != expected:\n    raise BundleVerificationError(...)\n```\n\nThat digest check is self-referential: the exporter signs both the subject digests and the predicate nodes with the same key. It confirms the bundle is internally consistent as built, not that each claim's purported asserter ever validly signed it. The existing test `test_tampered_claim_text_in_predicate_fails` asserts a \"digest mismatch\", confirming digest-only verification is the actual contract.\n\n## Severity and impact\n\n**Medium.** All trust in a bundle collapses to the single exporter key. Whoever holds it (or a malicious exporter) can emit a bundle containing claims whose asserter signatures are missing, invalid, or forged, and `verify_bundle` returns success. A relying party reading the docstring believes per-claim authenticity was verified when it was not. Security-sensitive because this is the trust boundary the SCITT-style export exists to provide.\n\n## Location\n\n- `mareforma/export_bundle.py:20` module docstring claims verification checks \"every per-claim signature inside predicate\"\n- `mareforma/export_bundle.py:183` `verify_bundle` docstring promises per-claim signature verification and a per-claim signature failure error\n- `mareforma/export_bundle.py:254` verify loop only recomputes and compares canonical-statement digests\n- `mareforma/exporters/jsonld.py:178` `_claim_node` emits no signature field, so the predicate carries nothing to verify per claim\n\n## Fix direction\n\nTwo honest options. Either export each claim's signature bundle in the JSON-LD predicate and have `verify_bundle` cryptographically verify it (including the claim_id and subject binding) against the claim's asserter or validator key, raising on the first failure as documented. Or, if per-claim verification is out of scope for the bundle format, correct the module docstring and the `verify_bundle` docstring to state exactly what is verified: the bundle-level DSSE signature plus internal subject-digest consistency, with per-claim asserter signatures explicitly not checked.\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:N/AC:L/AT:P/PR:N/UI:P/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-hxh5-gp44-rc6p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-71536"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/pull/58"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mareforma/mareforma/commit/20caa4a5a9557a140a09a5d2c1c4a6a2124c0cc3"
  }, {
    "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-347" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:03:39Z",
    "nvd_published_at" : "2026-11-18T23:17:21Z"
  }
}