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 openbadgeslibSecurity
-
security(ldp):
OB3LdpVerifiernow 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 theecdsa-sd-2023delegation:- only bundled contexts, and no inline
@contextobject; - 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-2023lifecycle claims (validFrom,validUntil,credentialStatus) must be mandatory.
OB3LdpSigner.signrefuses to emit a document that fails these rules. The low-levelverify_data_integrity_proofstill proves the dataset only. - only bundled contexts, and no inline
-
security(deps): dependency floors are raised:
- openvc-core
>=1.33.2for[eudi],[ldp-sd]and[oid4vci], covering GHSA-vrxg-57v4-85mc and GHSA-h9rq-wxcw-4rjc in the delegatedecdsa-sd-2023suite, with a run-time guard; - pyld
>=3.3.0for[ldp]and[ldp-sd]; - PyJWT[crypto]
>=2.15.1(GHSA-8wjv, GHSA-42vr, GHSA-hxm8).
- openvc-core
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/creditsEarnedvalues are emitted as JSON integers, so they canonicalize the same everywhere. - fix(ldp): a deeply nested document fails with
OB3VerificationError, not a bareRecursionError.
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
credentialSchemabut 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-2023credentials whose issuer leftvalidFrom,validUntilorcredentialStatusselectively 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.