Repository navigation
v4.6.2
Security release: upgrade if you issue or verify SD-JWT VC badges (the [eudi] track). GHSA-rrgc-3fp8-hqqx (high) affects 3.4.0–4.6.1. A badge past its validUntil verified as current, a holder could hide the validity window of a badge issued with a non-default disclosable=, and with x5c_trust_anchors a plain JWT signed by an anchored issuer passed as a badge.
pip install -U openbadgeslibSecurity
- security(eudi):
verify_badge_sd_jwtnow enforces the badge's ownvalidFromandvalidUntilon both trust paths (pinned key and X.509 anchors), andissue_badge_sd_jwtwritesvalidUntilas the issuer JWT'sexpand avalidFromstill ahead asnbf. The earlier ofvalidUntilandexpires_in_swins.issue_badge_sd_jwtrefuses to makename,achievement,validFromorvalidUntilselectively disclosable (and a bare string fordisclosable); only the recipient (credentialSubject) can be withheld.- With
x5c_trust_anchors, a token with no~(a plain JWT) is refused. It used to pass, ignoringexpected_vctandrequire_key_binding. status_list_token_resolvervalidatesleeway_swhen it is built, andexpires_in_sis validated at issuance.
- security(deps): the openvc-core floor of
[eudi],[ldp-sd]and[oid4vci]is now>=1.35.0(issuer-JWTaudand the status-list leeway are enforced there), and[ldp]/[ldp-sd]cap pyld below 4: pyld 4.0 (unreleased) drops statements from the signed dataset that 3.x keeps, which context validation does not refuse.
Fixed
- fix(did): a
did:webdocument nested deeper than the JSON parser recurses, or deeper than 64 levels, fails withOB3VerificationError, not a bareRecursionError. The same holds for a hostile issuer JWT header on the X.509 path (EudiError).
Compatibility
Re-issue SD-JWT badges issued with a disclosable= that named one of those claims, and any SD-JWT badge that must stop verifying at its validUntil everywhere: badges issued before 4.6.2 carry no exp or nbf, so only this version's verifier refuses them once expired, and nothing can detect a disclosure a holder already withheld. The Type Metadata document is unchanged byte for byte, so vct#integrity pins still resolve. Calls that named one of the four claims in disclosable now raise EudiError.
Verification
CI is green on the tagged commit (904e39c): the 3.10–3.15 matrix, Windows, and the [eudi] openvc-core floor and latest legs. PyPI publish succeeded. Locally, before tagging: flake8 and mypy clean, 2157 tests passed with OPENBADGES_REQUIRE_LDP_SD=1 and OPENBADGES_REQUIRE_OID4VCI=1, no unexpected skips (coverage 93.4 %); the same suite on CPython 3.10, 3.11, 3.12, 3.13 and 3.15rc3 with openvc-core 1.35.0 and 1.35.1. The Linux/Docker pre-run was not done (the Docker daemon was not running).
Full details in Changelog.txt.