pypi openbadgeslib 4.6.2
v4.6.2

latest releases: 4.6.5, 4.6.4, 4.6.3...
one month ago

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 openbadgeslib

Security

  • security(eudi): verify_badge_sd_jwt now enforces the badge's own validFrom and validUntil on both trust paths (pinned key and X.509 anchors), and issue_badge_sd_jwt writes validUntil as the issuer JWT's exp and a validFrom still ahead as nbf. The earlier of validUntil and expires_in_s wins.
    • issue_badge_sd_jwt refuses to make name, achievement, validFrom or validUntil selectively disclosable (and a bare string for disclosable); only the recipient (credentialSubject) can be withheld.
    • With x5c_trust_anchors, a token with no ~ (a plain JWT) is refused. It used to pass, ignoring expected_vct and require_key_binding.
    • status_list_token_resolver validates leeway_s when it is built, and expires_in_s is validated at issuance.
  • security(deps): the openvc-core floor of [eudi], [ldp-sd] and [oid4vci] is now >=1.35.0 (issuer-JWT aud and 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:web document nested deeper than the JSON parser recurses, or deeper than 64 levels, fails with OB3VerificationError, not a bare RecursionError. 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.

Don't miss a new openbadgeslib release

NewReleases is sending notifications on new releases.