HIGH · CVSS 4.0 EPSS 0.3% · 19th percentile CWE-347

CVE-2026-71536: Mareforma: verify_bundle never checks a per-claim signature

Published 2026-11-19 · Updated 2026-11-19 · Also known as GHSA-hxh5-gp44-rc6p

Summary

The Mareforma library fails to perform per-claim cryptographic signature verification despite documentation claiming otherwise. Developers using affected versions of the library must upgrade to version 0.3.8 or explicitly clarify their security assumptions regarding claim authenticity.

Who is affected

Affected deployments rely on the Mareforma bundle-level DSSE signature as a proxy for per-claim authenticity, which is insufficient. An attacker who compromises the exporter key or a malicious exporter can inject forged or invalid claims into a bundle, which verify_bundle will incorrectly accept as valid.

Exploitability

The vulnerability is rated as High severity due to its impact on integrity. While it requires a remote attacker (AV:N) with low attack complexity (AC:L) and low privilege requirements, the actual exploitability remains low as indicated by an EPSS score of 0.002 and no known exploitation in the CISA KEV catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-19. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
PyPI mareforma >= 0.3.0, < 0.3.8 0.3.8 python -m pip install 'mareforma>=0.3.8'

CVSS 4.0 vector

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

Attack vectorNetwork
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionPassive
Confidentiality (vulnerable system)None
Integrity (vulnerable system)High
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)High
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Is my data compromised if I am using an affected version?

Not necessarily, but you cannot rely on the authenticity of individual claims within a bundle, as the library only verifies internal consistency and the bundle-level signature, not the individual asserter signatures.

Does this vulnerability allow remote code execution?

No, the vulnerability pertains to signature verification logic failures (CWE-347) and does not inherently lead to remote code execution.

Was this vulnerability exploited in the wild?

There is no evidence of active exploitation; the CISA KEV database currently lists this vulnerability as not exploited.

Original advisory description
## 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.

References

Source records: GHSA-hxh5-gp44-rc6p (OSV.dev) · EPSS by FIRST, 2026-11-26.