unstale

npm / @sd-jwt/sd-jwt-vc

@sd-jwt/sd-jwt-vc

What changed in @sd-jwt/sd-jwt-vc 0.1 to 0.25, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

24 breaking8 security11 new APIs and options2 behavior and defaults10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@sd-jwt/sd-jwt-vc 0.2517 changes

Breaking changes 11

  • Treats aka_vcts as a protected claim: issue rejects disclosure frames for it or its elements, and verification rejects credentials that disclose it or its elements.

    0.25.0release notes

  • Renames exception classes to FooError, including SDJWTException to SdJwtError and SLException to StatusListError; error names change accordingly.

    0.25.0release notes

  • Adds SdJwtVcConfig fetch limits for status lists and type metadata; the default fetchers reject responses exceeding the corresponding limit.

    0.25.0release notes

  • Now verifies the SD-JWT VC signature before fetching its vct; it requires a verifier and accepts verification options as a new last parameter.

    0.25.0release notes

  • Renamed from SDJWTVCConfig to SdJwtVcConfig to use word-style capitalization.

    0.25.0release notes

  • Renamed from SDJwtVcInstance to SdJwtVcInstance to use word-style capitalization.

    0.25.0release notes

  • Renamed from SDJWTVCStatusReference to SdJwtVcStatusReference to use word-style capitalization.

    0.25.0release notes

  • verify, safeVerify, validate, and getVct now reject JWTs unless typ is dc+sd-jwt or application/dc+sd-jwt; issue refuses omitTyp.

    0.25.0release notes

  • Renamed from VCTFetcher to VctFetcher to use word-style capitalization.

    0.25.0release notes

  • When type metadata is absent, verifies the SD-JWT VC signature before fetching its vct; it requires a verifier and verification options as a new last parameter.

    0.25.0release notes

  • Renames Zod schemas from FooSchema or fooSchema to zFoo.

    0.25.0release notes

Security 3

  • Adds a SdJwtVcConfig limit on how large a credential status list may inflate; the default is 16 MiB, and verify and safeVerify reject larger lists.

    0.25.0release notes

  • Fetches status lists and type metadata only after credential verification succeeds, preventing invalid signatures from triggering requests to attacker-chosen URLs.

    0.25.0release notes

  • Default fetchers no longer include response bodies in errors, and invalid type-metadata JSON no longer produces a SyntaxError quoting the body, avoiding disclosure of internal endpoint responses.

    0.25.0release notes

New APIs and options 3

  • Adds a configurable fetch function to SdJwtVcConfig, used by both default fetchers; it receives a fetch type as its third argument.

    0.25.0release notes

  • Introduces the fetch type passed as the third argument to the configured fetch function, with values for status lists and type metadata.

    0.25.0release notes

  • Adds the verified compact status-list token, decoded header, and payload to the statusValidator context, enabling caching without decoding it again.

    0.25.0release notes

@sd-jwt/sd-jwt-vc 0.249 changes

Breaking changes 4

  • Rejects disclosure frames for sub-claims of protected claims, including status_list under status, because SD-JWT VC does not permit their selective disclosure.

    0.24.1release notes

  • Rejects SD-JWT VCs whose issuer-signed protected claims have selectively disclosable sub-claims, regardless of whether the holder reveals them.

    0.24.1release notes

  • Rejects issuer-signed JWTs and Key Binding JWTs with a crit header, and SD-JWT VCs containing protected claims in a Disclosure.

    0.24.1release notes

  • vct#integrity can no longer be made selectively disclosable, as required by SD-JWT VC.

    0.24.0release notes

Security 2

  • Adds a check for extra claims, missing or undisclosed mandatory claims, and sd violations in an SD-JWT VC against its type metadata.

    0.24.0release notes

  • Mandatory claim checks no longer mistake inherited names such as constructor for claims; a mandatory claim under a null path is undisclosed when all elements are withheld and missing when the value is not an array.

    0.24.0release notes

Behavior and default changes 1

  • When loadTypeMetadataFormat is enabled, verify and safeVerify add the type metadata verification result as typeMetadataVerification.

    0.24.0release notes

Fixes and other changes 2

  • svg_templates is optional, and parsing metadata without svg_templates or svg_template no longer adds an svg_templates: undefined key.

    0.24.1release notes

  • The vct of type metadata passed by the caller is compared before its extends chain is resolved.

    0.24.0release notes

@sd-jwt/sd-jwt-vc 0.234 changes

Breaking changes 3

  • Resolving type metadata now fails if a fetched document describes a different vct than the one it was fetched for, for the credential's vct and every extends value.

    0.23.1release notes

  • The CommonJS build is no longer published; only ESM is published, avoiding dual-package hazards in single-module-system runtimes.

    0.23.0release notes

  • The digest is compared as base64 instead of hex; with multiple hashes, only the strongest supported algorithm is checked, and any of its values may match. Metadata without a supported algorithm is rejected.

    0.23.0release notes

Fixes and other changes 1

  • A circular extends chain leading back to the credential's own vct is detected when reached, rather than one fetch later.

    0.23.1release notes

@sd-jwt/sd-jwt-vc 0.2213 changes

Breaking changes 4

  • Credential expectedAudience no longer constrains the Key Binding JWT.

    0.22.0release notes

  • Applies to the issuer-signed SD-JWT payload rather than the Key Binding JWT or Status List Token.

    0.22.0release notes

  • The constructor now takes an options object containing details, code, and cause instead of positional arguments.

    0.22.0release notes

  • verify and safeVerify reject a Status List Token with a missing or wrong typ header before verifying its signature; statuslist+jwt and application/statuslist+jwt are accepted.

    0.22.0release notes

Security 1

  • Use this option to constrain the Key Binding JWT's audience.

    0.22.0release notes

New APIs and options 4

  • Time-check failures throw JwtTimeClaimException with details describing the claim, value, current time, allowed clock skew, and maximum age where applicable.

    0.22.0release notes

  • SDJwtVcInstance and SDJWTVCConfig now take custom verification options as a type parameter, so options passed to verifier and statusVerifier are typed.

    0.22.0release notes

  • A credential whose status is not valid fails with code STATUS_INVALID and details containing uri, idx, and status.

    0.22.0release notes

  • The custom statusValidator receives the URI and index as a second argument.

    0.22.0release notes

Behavior and default changes 1

  • No longer constrains the Key Binding JWT or Status List Token; the Status List Token signature remains verified by the configured status verifier.

    0.22.0release notes

Fixes and other changes 3

  • Applies to the issuer-signed SD-JWT payload rather than the Key Binding JWT or Status List Token.

    0.22.0release notes

  • Uses an SDJWTException's code for status and type metadata check failures; errors without a code fall back to STATUS_VERIFICATION_FAILED or VCT_VERIFICATION_FAILED.

    0.22.0release notes

  • When a status list token fails verification, the exception includes the status list URI in details and the original exception as cause.

    0.22.0release notes

@sd-jwt/sd-jwt-vc 0.218 changes

Breaking changes 2

  • The CommonJS entrypoint is now dist/index.cjs instead of dist/index.js.

    0.21.0release notes

  • Status List Token claims are verified with verifyStatusListJwtClaims; sub and iat are required, sub must match the status list reference uri, and currentDate and skewSeconds apply to these checks.

    0.21.0release notes

New APIs and options 3

  • Added the standard RFC 7519 aud claim to SdJwtVcPayload.

    0.21.1release notes

  • Added the standard RFC 7519 jti claim to SdJwtVcPayload.

    0.21.1release notes

  • Type declarations are exposed through the types export condition.

    0.21.0release notes

Fixes and other changes 3

  • Propagated the ExtendedPayload generic through SDJwtInstance.decode, keys, presentableKeys, and getClaims, preserving the payload type across these APIs.

    0.21.1release notes

  • The default status list fetcher compares Content-Type with isMediaType, accepting responses with parameters such as charset=utf-8.

    0.21.0release notes

  • When no statusVerifier is configured, the status list JWT is verified with verifier instead of failing with a missing-verifier error.

    0.21.0release notes

@sd-jwt/sd-jwt-vc 0.201 changes

Security 1

  • SD JWT JS: Tampered disclosures silently dropped instead of rejected

    0.20.0security advisory

@sd-jwt/sd-jwt-vc 0.13 changes

Security 1

  • Tampered or unreferenced disclosures and reserved claims are rejected.

    0.1.0release notes

New APIs and options 1

Fixes and other changes 1

  • The config parameter type override in SDJwtVcInstance is fixed.

    0.1.0release notes