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@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.
Renames exception classes to FooError, including SDJWTException to SdJwtError and SLException to StatusListError; error names change accordingly.
Adds SdJwtVcConfig fetch limits for status lists and type metadata; the default fetchers reject responses exceeding the corresponding limit.
Now verifies the SD-JWT VC signature before fetching its vct; it requires a verifier and accepts verification options as a new last parameter.
Renamed from SDJWTVCConfig to SdJwtVcConfig to use word-style capitalization.
Renamed from SDJwtVcInstance to SdJwtVcInstance to use word-style capitalization.
Renamed from SDJWTVCStatusReference to SdJwtVcStatusReference to use word-style capitalization.
verify, safeVerify, validate, and getVct now reject JWTs unless typ is dc+sd-jwt or application/dc+sd-jwt; issue refuses omitTyp.
Renamed from VCTFetcher to VctFetcher to use word-style capitalization.
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.
Renames Zod schemas from FooSchema or fooSchema to zFoo.
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.
Fetches status lists and type metadata only after credential verification succeeds, preventing invalid signatures from triggering requests to attacker-chosen URLs.
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.
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.
Introduces the fetch type passed as the third argument to the configured fetch function, with values for status lists and type metadata.
Adds the verified compact status-list token, decoded header, and payload to the statusValidator context, enabling caching without decoding it again.
@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.
Rejects SD-JWT VCs whose issuer-signed protected claims have selectively disclosable sub-claims, regardless of whether the holder reveals them.
Rejects issuer-signed JWTs and Key Binding JWTs with a crit header, and SD-JWT VCs containing protected claims in a Disclosure.
vct#integrity can no longer be made selectively disclosable, as required by SD-JWT VC.
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.
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.
Behavior and default changes 1
When loadTypeMetadataFormat is enabled, verify and safeVerify add the type metadata verification result as typeMetadataVerification.
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.
The vct of type metadata passed by the caller is compared before its extends chain is resolved.
@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.
The CommonJS build is no longer published; only ESM is published, avoiding dual-package hazards in single-module-system runtimes.
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.
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.
@sd-jwt/sd-jwt-vc 0.2213 changes
Breaking changes 4
Credential expectedAudience no longer constrains the Key Binding JWT.
Applies to the issuer-signed SD-JWT payload rather than the Key Binding JWT or Status List Token.
The constructor now takes an options object containing details, code, and cause instead of positional arguments.
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.
Security 1
Use this option to constrain the Key Binding JWT's audience.
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.
SDJwtVcInstance and SDJWTVCConfig now take custom verification options as a type parameter, so options passed to verifier and statusVerifier are typed.
A credential whose status is not valid fails with code STATUS_INVALID and details containing uri, idx, and status.
The custom statusValidator receives the URI and index as a second argument.
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.
Fixes and other changes 3
Applies to the issuer-signed SD-JWT payload rather than the Key Binding JWT or Status List Token.
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.
When a status list token fails verification, the exception includes the status list URI in details and the original exception as cause.
@sd-jwt/sd-jwt-vc 0.218 changes
Breaking changes 2
The CommonJS entrypoint is now dist/index.cjs instead of dist/index.js.
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.
New APIs and options 3
Added the standard RFC 7519 aud claim to SdJwtVcPayload.
Added the standard RFC 7519 jti claim to SdJwtVcPayload.
Type declarations are exposed through the types export condition.
Fixes and other changes 3
Propagated the ExtendedPayload generic through SDJwtInstance.decode, keys, presentableKeys, and getClaims, preserving the payload type across these APIs.
The default status list fetcher compares Content-Type with isMediaType, accepting responses with parameters such as charset=utf-8.
When no statusVerifier is configured, the status list JWT is verified with verifier instead of failing with a missing-verifier error.
@sd-jwt/sd-jwt-vc 0.201 changes
Security 1
SD JWT JS: Tampered disclosures silently dropped instead of rejected
@sd-jwt/sd-jwt-vc 0.13 changes
Security 1
Tampered or unreferenced disclosures and reserved claims are rejected.
New APIs and options 1
Status verification can now be disabled.
Fixes and other changes 1
The config parameter type override in SDJwtVcInstance is fixed.