CWT
CBOR Web Token · CBOR Web Tokens
By Boston Identity · Explained · 6 min read
The short answer
A CBOR Web Token (CWT) is a binary token of claims, such as its issuer and expiry. It follows the JSON Web Token but uses CBOR, as JSON is considered inefficient for some Internet of Things systems on low-power radio.
- What it is
- A standard
- Defined by
- IETF, RFC 8392 (May 2018)
- Who it's for
- Teams that check device, attestation or agent tokens
- In our briefings
- 151by month, last 12
What is CWT?
A CBOR Web Token (CWT) is a compact way to pass claims from one party to another.S1 A claim is one piece of information about a subject, written as a name and a value.S1 RFC 8392 defines the format. Its claims are encoded in Concise Binary Object Representation (CBOR), a binary data format, instead of JSON.S1
A JSON Web Token (JWT) is used in OAuth 2.0 and OpenID Connect deployments. The RFC's authors say JSON is considered inefficient for some Internet of Things (IoT) systems that use low-power radio.§1 A CWT keeps the JWT claims and their meanings. To keep the token small, each registered claim gets a short integer key: the issuer travels as 1 and the expiration time as 4.§3, §4
The claims are protected with CBOR Object Signing and Encryption (COSE), the CBOR family of formats for signing and encrypting data.§1 A JWT uses JSON Web Signature and JSON Web Encryption for the same job.§1 The RFC also registers a media type, application/cwt, and CBOR tag 61, so a system can label a CBOR object as a CWT.§6, §9
A CWT is only a container for claims. RFC 8392 says how to build and check one, and leaves it to each application to say which claims a valid token must carry.§3, §7
How does CWT work?
Two parties take part: the issuer, which creates the token, and the recipient, which validates it. RFC 8392 lists the steps for each side, and their order does not matter where one step does not depend on another.§7
Figure steps
- The issuer builds the claims set
- The issuer wraps the claims in COSE
- The issuer nests and tags, if needed
- The recipient unwraps the tags
- The recipient checks the header and the protection
- The recipient reads the claims
The issuer wraps the claims set in COSE and tags; the recipient removes each layer and checks it to reach the claims.
Drawn from RFC 8392, section 7
Swipe for the full figure →
The issuer builds the claims set
The issuer writes the claims it wants into a CBOR map, the claims set. Registered claims use integer keys from 1 (issuer) to 7 (the token's ID), and the binary form of this map becomes the message to protect.§4, §7.1
The issuer wraps the claims in COSE
The issuer creates a COSE header. It then signs the message, adds a message authentication code (MAC), or encrypts it. The claims set becomes the payload of a COSE_Sign, COSE_Sign1, COSE_Mac or COSE_Mac0 object, or the plaintext of a COSE_Encrypt or COSE_Encrypt0 object. Every COSE creation step must be followed.§7.1
The recipient checks the header and the protection
Every header parameter must be one the recipient understands and supports, or one marked as safe to ignore.§7.2 The recipient then verifies the signature or MAC, or decrypts, by the COSE rules. If the result is itself a COSE object, the token was nested, and the recipient starts again from the first check.§7.2
The recipient reads the claims
The final message must be a valid CBOR map, and that map is the claims set.§7.2 If any step fails, the recipient must reject the token. Which claims are required is up to the application, and claims the recipient does not understand must be ignored unless the application says otherwise.§3, §7.2
Why does CWT matter now?
Attestation work builds on CWT. RFC 9711 standardizes the Entity Attestation Token (EAT), an attestation token. It keeps the full flexibility of CWT, JWT and their signing formats, and its one defined profile, for constrained devices, allows CBOR only.1 A draft on wrapping attestation messages lets a "cmw" claim carry a CBOR record inside a CWT, just as a JSON record rides in a JWT.2
Two other drafts name it too. A draft on agent evidence defines a claim, aee_evidence, that a JWT or CWT identifying an agent may carry. The same claim may ride in a WIMSE Workload Identity Token.3 A key attestation draft asks IANA, the body that keeps the internet's protocol registries, to register a claim describing how a key is protected, for both CWT and JWT.4
Revocation has a CWT path as well. Token Status List gives an issuer one signed, compressed list of bits for all its tokens. A CWT can carry an index into that list, as can a JWT, an SD-JWT VC or an ISO mdoc.5
Where does it fit?
| Compared with | How CWT differs |
|---|---|
| COSE | COSE is the layer that signs, MACs or encrypts. A CWT is a claims set carried in a COSE object.§7.1 COSE can also carry token claims where the payload is not a CWT: RFC 9597 puts them in a COSE header.6 |
| Entity Attestation Token (RFC 9711) | RFC 9711's Entity Attestation Token keeps the full flexibility of CWT and JWT, so an attestation token can take either form. The RFC says a profile has to narrow those options to guarantee interoperability.1 |
| Token Status List | Token Status List does not replace a CWT. It is a separate signed list that a CWT points into with an index and a list address, so a verifier can read whether the token is valid, revoked or suspended.5 |
What goes wrong?
- The security of a CWT rests on COSE. Without that protection, an attacker can modify, add or remove claims.§8
- A good signature is not enough on its own. The recipient needs to authenticate and trust the party that created the token before it makes an authorization decision from its claims.7
- RFC 8392 makes no claim mandatory, including the issuer, audience and expiration claims.8 Each application should define which claims it uses and when they are required.§3.1
- When a token is both signed and encrypted, producers normally should sign first and then encrypt. That order prevents attacks that strip the signature and leave only an encrypted message.§8
- RFC 9679 lets a CWT name its holder's key by a thumbprint, a hash of the key, and assumes the recipient can find the key from it without saying how.9 A COSE thumbprint and a JSON Web Key thumbprint of the same key are different, so a service that meets one key in JSON and CBOR tokens cannot match them by hash.10
- With Token Status List, a revocation reaches a verifier only when that verifier fetches the list again.5
What should a security leader ask?
- 01
Which of our systems accept CWTs, and which claims does each one require before it accepts a token?
- 02
Whose keys do our validators trust to create CWTs, and how does each validator learn those keys?
- 03
Do our validators reject a CWT whose header carries parameters they do not understand?
- 04
Where a CWT names its holder's key only by thumbprint, how does our verifier find the key?
- 05
When we revoke a device or agent token, how long until every verifier fetches the status list again?
Sources
- S1
CBOR Web Token (CWT)IETF · RFC 8392, Standards Track, May 2018
›Evidence: 10 claims from 8 briefings
- 1BI-FIND-2025-0413 · RFC 9711 standardizes the attestation token and sets no security floor for the device that signs itEAT keeps the full flexibility of CWT, JWT, COSE and JOSE, and the RFC says a profile has to narrow those options to guarantee interoperability. Only a full profile may be named in the eat_profile claim. The one profile the RFC defines, urn:ietf:rfc:rfc9711, is for constrained devices: CBOR only, COSE_Sign1 signing, receivers that accept ES256, ES384 and ES512, the verification key named by key ID or UEID, and a new unique nonce for every token request. Any deviation, even requiring one extra claim, needs a different identifier. Outside that profile, all EAT use must still provide freshness, and the EAT nonce is one option among several.
- 2BI-FIND-2025-0445 · RATS wraps attestation messages in one envelope and requires composite evidence to be bound togetherSection 4 defines how CMWs travel inside web tokens and PKIX artifacts, and where they diverge from the Trusted Computing Group's (TCG) DICE Attestation Architecture. In JSON Web Tokens (JWTs) and CBOR Web Tokens (CWTs), a "cmw" claim carries a Record or Collection matching the token's encoding (a JSON Record or Collection in JWT; a CBOR Record or Collection in CWT). In X.509 certificates, Certificate Revocation Lists (CRLs) and Certificate Signing Requests (CSRs), the id-pe-cmw extension (OID 1.3.6.1.5.5.7.1.35) wraps a DER-encoded UTF8String for JSON or OCTET STRING for CBOR. That extension "SHOULD NOT be marked critical," though the draft allows marking it critical when the wrapped message is essential for resource access and legacy relying parties might otherwise "bypass crucial controls." Section 4.4.2 warns that TCG DICE's CMW grammar covers only a subset of this specification and cannot encode a Collection CMW, while Section 8 cautions that certificate authorities putting hardware Evidence (such as an HSM model and patch level) into public X.509 certificates should state those rules in a Certificate Practices Statement so requester hardware details are not broadcast unexpectedly.
- 3BI-FIND-2026-1388 · An agent-evidence draft no longer checks every actor in a delegation chain before a service admits a callThe draft defines one claim, aee_evidence, that a WIMSE Workload Identity Token, or any JWT or CWT that identifies an agent, may carry. Three members are required: the Evidence Service expected to hold the agent's audit evidence, a digest of the policy pack it runs under, and a persistent did:web agent identifier. The key binding is optional: without an agent_credential_digest the claim gives "identity-and-policy correlation only". The evidence_service value is "an identifier, not necessarily a retrievable location", and the claim "is not a retrieval protocol": finding and fetching the evidence are left to deployment configuration or another protocol, and a URI in the token is not a trust anchor. The authors say the claim "is a pointer and a commitment, not a proof", and its policy digest "does not prevent downgrade". In their security section, a compromised identity server can point a relying party at a colluding Evidence Service, with the Transparency Service's receipts as the independent check. That check has limits the authors state. A Receipt establishes that a statement was registered; whether it is true, complete and covers all relevant activity is a separate question, so acceptance also depends on trusted Issuers and Evidence Services, on any runtime appraisal and on independent observation. A supplied Bundle is "a snapshot of what its producer chose to include": a missing revocation entry in it "does not establish current non-revocation", and a relying party that needs current acceptance applies its own freshness rules to the status evidence.
- 4BI-FIND-2026-1322 · An IETF draft ties attestation evidence to the certificate key, but only for the moment of the checkThe draft adds one claim, key-attributes, which says how the key is protected (extractable, never-extractable, sensitive, local, with meanings taken from the PKIX key attestation draft) and what it may be used for. It asks IANA to register the claim for both CWT and JWT. The authors argue these properties can be trusted only when the attested environment that generated and holds the key asserts them. On that ground they reject a construction "sometimes used in attestation protocols": hashing an unsigned claims set into the challenge of an existing attestation interface, which a process inside the trusted environment could abuse as a proxy to get fabricated claims signed. They argue this from the design and show no attack. A split model lets a lower-privileged key attestation key sign the key's token while a platform token vouches for that key.
- 5BI-FIND-2026-0632 · OAuth's revocation list for issuers is nearly an RFC, and agent drafts we read that need revocation don't use itToken Status List replaces per-token checks with one signed, compressed bit array per issuer. Each token (JWT, SD-JWT VC, CWT or ISO mdoc) carries an index and a list URI; a verifier fetches the list, checks its signature and reads 1 to 8 bits for VALID, INVALID, SUSPENDED or an application value. Because everyone downloads the same list, the issuer does not learn which token is being checked, the property the authors call herd privacy, unlike OAuth introspection or OCSP. Revocation reaches a verifier only when it refetches, which the issuer steers with the list's exp and ttl.
- 6BI-FIND-2024-0063 · RFC 9597 exposes token claims in COSE headers without giving them extra trustRFC 9597 defines the CWT Claims COSE header parameter, label 15, to carry a map of claims. The payload need not be a CWT. Placement in a protected header is RECOMMENDED, and the parameter MUST occur only once across the protected and unprotected headers. If a claim also appears in a CWT payload, the receiver MUST verify matching values unless the application defines other specific processing rules.
- 7BI-FIND-2018-0011 · CWT leaves required claims to the application, including issuer, audience and expiryRFC 8392 requires rejection if any listed CWT validation step fails. The procedure checks the encoding, performs the relevant COSE verification or decryption and processes nested layers until the result is a CBOR claims map. Its security considerations also say the recipient needs to authenticate and trust the party that created the CWT before making an authorization decision from its claims.
- 8BI-FIND-2018-0010 · CWT leaves required claims to the application, including issuer, audience and expiryRFC 8392 leaves the claims required for a valid CWT to its application context. None of its registered claims, including issuer, audience and expiration, is universally mandatory to use or implement. Applications should define which claims they use and when they are required or optional. In the absence of application requirements, implementations MUST ignore claims they do not understand.
- 9BI-FIND-2024-0082 · RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifierRFC 9679 adds a "ckt" member to a CBOR Web Token's "cnf" (confirmation) claim, registered as confirmation key 5, so an issuer can bind a token to its holder's proof-of-possession key by naming the key's thumbprint instead of carrying the key. The RFC says this approach "assumes that the recipient is able to obtain the identified COSE Key using the thumbprint", and Section 5.6 does not say how. The member holds only the hash bytes, and the IANA entry describes it as a "COSE Key SHA-256 Thumbprint". The thumbprint URI the RFC also defines spells its hash name out instead (urn:ietf:params:oauth:ckt:sha-256: followed by the value).
- 10BI-FIND-2024-0084 · RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifierThe RFC says a COSE thumbprint ("ckt") and a JSON Web Key thumbprint ("jkt") "are different even when the underlying cryptographic key material is the same", and it registers neither ckt as a confirmation method for JWTs nor jkt for CWTs. It likens a COSE thumbprint to a digest of an X.509 SubjectPublicKeyInfo, which covers the key alone, rather than to the "x5t" digest of a whole certificate, and notes it is computed over CBOR rather than ASN.1. We read this as one key carrying two names: a service that meets the same key in JSON and CBOR tokens cannot match them by hash and has to recompute from the key itself.
›In our briefings
What our briefings say about CWT itself, with the most direct claims first.
RFC 9597 defines the CWT Claims COSE header parameter, label 15, to carry a map of claims. The payload need not be a CWT. Placement in a protected header is RECOMMENDED, and the parameter MUST occur only once across the protected and unprotected headers. If a claim also appears in a CWT payload, the receiver MUST verify matching values unless the application defines other specific processing rules.
RFC 9597 exposes token claims in COSE headers without giving them extra trustBI-FIND-2024-0063
RFC 8392 requires rejection if any listed CWT validation step fails. The procedure checks the encoding, performs the relevant COSE verification or decryption and processes nested layers until the result is a CBOR claims map. Its security considerations also say the recipient needs to authenticate and trust the party that created the CWT before making an authorization decision from its claims.
CWT leaves required claims to the application, including issuer, audience and expiryBI-FIND-2018-0011
RFC 9679 adds a "ckt" member to a CBOR Web Token's "cnf" (confirmation) claim, registered as confirmation key 5, so an issuer can bind a token to its holder's proof-of-possession key by naming the key's thumbprint instead of carrying the key. The RFC says this approach "assumes that the recipient is able to obtain the identified COSE Key using the thumbprint", and Section 5.6 does not say how. The member holds only the hash bytes, and the IANA entry describes it as a "COSE Key SHA-256 Thumbprint". The thumbprint URI the RFC also defines spells its hash name out instead (urn:ietf:params:oauth:ckt:sha-256: followed by the value).
RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifierBI-FIND-2024-0082
›Cited in 15 briefings
Every briefing that discusses this term, newest first.
- JSON Proof Token draft makes none of its unlinkability rules a MUST
Draft · · IETF Datatracker · Michael B. Jones et al. · Nov 16, 2026
- OAuth's token revocation list nears RFC, and a shared list hides which token is checked
Draft · · IETF Datatracker · Tobias Looker et al. · Aug 13, 2026
- An agent-evidence draft no longer checks every actor in a delegation chain before a service admits a call
Draft · · IETF Datatracker · Shameer Thaha et al. · Oct 19, 2026
- An IETF draft caps each attestation verdict at its worst check and leaves the unchecked parts to the relying party
Draft · · IETF Datatracker · Thomas Fossati et al. · May 26, 2026
- RFC 9943 makes a log prove who signed a statement, not that it is true or that nothing was left out
Article · · IETF (RFC Editor) · Henk Birkholz et al. · Jun 30, 2026
- RATS wraps attestation messages in one envelope and requires composite evidence to be bound together
Draft · · IETF Datatracker · Henk Birkholz et al. · Dec 11, 2025
- An IETF draft ties attestation evidence to the certificate key, but only for the moment of the check
Draft · · IETF Datatracker · Tirumaleswar Reddy.K et al. · Aug 15, 2026
- A draft ties what each AI agent may read to what it may do, and still can't take a grant back
Draft · · IETF Datatracker · Hamdy Atakora · Sep 21, 2026
- SD-CWT requires a key-signed proof for each verifier, yet none of its three prototypes reports interop testing
Draft · · IETF Datatracker · Michael Prorock et al. · Jan 13, 2026
- Arm's PSA attestation RFC trusts two device states, and its Table 1 labels one as root-of-trust debug
Article · · RFC Editor · Hannes Tschofenig et al. · Jun 13, 2025
- W3C Data Integrity proofs name their purpose, so a verifier can refuse a credential signature offered as a login
Article · · W3C · Manu Sporny et al. · May 15, 2025
- RFC 9711 standardizes the attestation token and sets no security floor for the device that signs it
Article · · RFC Editor · Laurence Lundblade et al. · Apr 2025
- RFC 9679 lets a CBOR token name its holder's key by thumbprint alone, and leaves finding the key to the verifier
Article · · RFC Editor · Kohei Isobe et al. · Dec 20, 2024
- RFC 9597 exposes token claims in COSE headers without giving them extra trust
Article · · IETF / RFC Editor · Tobias Looker et al. · Jun 1, 2024
- CWT leaves required claims to the application, including issuer, audience and expiry
Article · · RFC Editor / IETF · Michael B. Jones et al. · May 1, 2018
Related terms
What appears alongside CWT in the same briefings.
Was this explainer useful?
Share this explainer
Every finding, forecast and open question on this site has a permanent ID. If we reword one, its ID stays the same, so a citation keeps pointing to the same claim.
Working on an identity problem that involves CWT? Talk to Boston Identity