Skip to content

v4.6.1

Choose a tag to compare

@luisgf luisgf released this 14 Oct 16:24
· 99 commits to master since this release

Security release: upgrade if you verify OB 3.0 Data Integrity (LDP) badges. GHSA-rp5q-966c-5592 (high) affects 3.2.0–4.6.0. A Data Integrity proof signs the RDF dataset, but OB3LdpVerifier read every policy field from the JSON. A holder of any eddsa-rdfc-2022 badge could therefore present it with a forged recipient, achievement or validity window, or hide its revocation, and keep the issuer's genuine signature.

pip install -U openbadgeslib

Security

  • security(ldp): OB3LdpVerifier now enforces VC Data Integrity §2.4.1 context validation and §2.4.3 lossless securing before it builds the credential or applies any policy. It applies to both cryptosuites and runs ahead of the ecdsa-sd-2023 delegation:

    • only bundled contexts, and no inline @context object;
    • the document and the proof must be their own compacted form, with every policy IRI spelled by the key the policy reads;
    • nothing may be dropped on the way to RDF;
    • @included, @reverse, nested arrays and status members described outside their entry are refused;
    • ecdsa-sd-2023 lifecycle claims (validFrom, validUntil, credentialStatus) must be mandatory.

    OB3LdpSigner.sign refuses to emit a document that fails these rules. The low-level verify_data_integrity_proof still proves the dataset only.

  • security(deps): dependency floors are raised:

    • openvc-core >=1.33.2 for [eudi], [ldp-sd] and [oid4vci], covering GHSA-vrxg-57v4-85mc and GHSA-h9rq-wxcw-4rjc in the delegated ecdsa-sd-2023 suite, with a run-time guard;
    • pyld >=3.3.0 for [ldp] and [ldp-sd];
    • PyJWT[crypto] >=2.15.1 (GHSA-8wjv, GHSA-42vr, GHSA-hxm8).

Fixed

  • fix: the Python 3.10 deprecation now gives the real CPython end-of-life date, 2026-10-01; 4.6.0 said 2026-10-31. The documented filter is unchanged.
  • fix(ob3): integral creditsAvailable/creditsEarned values are emitted as JSON integers, so they canonicalize the same everywhere.
  • fix(ldp): a deeply nested document fails with OB3VerificationError, not a bare RecursionError.

Compatibility

Data Integrity badges whose JSON their proof does not fully cover are now refused. Re-issue them on 4.6.1. This covers:

  • LDP badges issued by 3.6.0–3.14.0 with a credentialSchema but without the extensions context (#239);
  • badges signed on pyld ≤3.1 with integral float credits;
  • VC 1.1-era badges re-compacted onto VC 2.0;
  • ecdsa-sd-2023 credentials whose issuer left validFrom, validUntil or credentialStatus selectively disclosable.

Verification

CI is green on the tagged commit (fa22f4c): the 3.10–3.15 matrix, Windows, and the [eudi]/[ldp-sd] openvc-core floor and latest legs. PyPI publish succeeded.

Locally:

  • flake8 and mypy --strict (59 files) pass.
  • 2071 tests passed with 0 skipped, under OPENBADGES_REQUIRE_LDP_SD=1 OPENBADGES_REQUIRE_OID4VCI=1, with openvc-core 1.33.2, pyld 3.3.0 and PyJWT 2.15.1. The same suite also passed on CPython 3.10.20 and 3.15.0rc3.
  • The fix went through repeated independent bypass-hunting rounds, and every reproduced variant is pinned by a regression test.

Full details in Changelog.txt.