# What is JSON Web Key (JWK)?

> A JSON Web Key is an IETF format for writing one cryptographic key as a small JSON object. A JWK Set is a list of them, used by the standards for signed and encrypted JSON content.

Explainer by Boston Identity, 2026-11-06. 7 min read. https://insights.bostonidentity.com/glossary/jwk

- What it is: standard
- Defined by: IETF, RFC 7517 (Standards Track, 2015)
- Who it's for: Teams that sign, verify or rotate token keys

## What is JSON Web Key (JWK)?

A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) object that represents a cryptographic key, and its members describe the key, including its value [S1 §2]. RFC 7517, published by the Internet Engineering Task Force (IETF) in May 2015 on the Standards Track, also defines a JWK Set: a JSON object whose "keys" member holds an array of JWKs [S1 §2]. The algorithms and key types sit in a separate document, JSON Web Algorithms (JWA), and in registries kept by the Internet Assigned Numbers Authority (IANA) [S1 §1].

JWKs and JWK Sets are used in JSON Web Signature (JWS) and JSON Web Encryption (JWE), the IETF formats for signed and encrypted content [S1 §1]. We read JWK as the shared way those formats write a key down. Its member names are short on purpose, because compact output is a core goal [S1 §1]. The RFC is also clear about its limits: it does not try to replace X.509 certificates or to define new kinds of certificate chains [S1 §1].

Think of it like this: A JWK is like the tag on a key at a hotel front desk, saying what kind of key it is and what it is meant for, and the JWK Set is the board the keys hang on. The comparison stops at trust: anyone can write a tag, so the tag alone says nothing about who cut the key.

Not the same as: A JWK is not an X.509 certificate, which binds attributes such as a subject name to a key. A JWK can carry or point to a certificate, but on its own it holds a key and a few optional hints [S1 §4.6, §4.7, §9.1].

## How does JSON Web Key (JWK) work?

Two parties appear below. The key holder writes keys down as JWKs, and the recipient is a service that has to verify a signature or decrypt content with one of them.

[Figure: The key holder writes each key as a JSON object and adds it to a set; the recipient matches the token's key ID against the set, skips what it cannot read, and decides on trust from what is bound to the key.]

1. **The holder writes the key as JSON.** Every JWK must have a "kty" member, the key type, such as "RSA" or "EC" for elliptic curve [S1 §4.1]. The other members depend on the key type and are defined in JWA; in the RFC's example, an elliptic-curve key carries its curve, P-256, and its x and y coordinates [S1 §3, §4]. Member names must be unique within the object [S1 §4].
2. **The holder may state what the key is for.** Three optional members describe intended use. "use" says signing ("sig") or encryption ("enc"), "key_ops" lists operations such as sign and verify, and "alg" names the algorithm the key is meant for [S1 §4.2–4.4]. The first two are optional unless the application requires them [S1 §4.2, §4.3]. The RFC says "use" and "key_ops" should not appear together, and that they must agree if both do [S1 §4.3].
3. **The holder may link the key to a certificate.** Four optional members tie a JWK to an X.509 certificate: a URL (x5u), the certificate chain itself (x5c), or a SHA-1 or SHA-256 thumbprint of the certificate (x5t, x5t#S256) [S1 §4.6–4.9]. For all four, the key in the certificate must match the JWK's public key [S1 §4.6–4.9]. The way a certificate is fetched from an x5u URL must provide integrity protection, and an HTTP GET for it must use TLS (Transport Layer Security), with the server's identity validated [S1 §4.6].
4. **The holder groups keys into a JWK Set.** A JWK Set is a JSON object, and its "keys" member, an array of JWKs, must be present [S1 §5]. By default the order of that array implies no preference, though an application may give it one [S1 §5.1]. When keys in a set carry "kid" (key ID) values, different keys should use distinct ones [S1 §4.5].
5. **The recipient picks a key by its ID.** When a key is used with JWS or JWE, the JWK's "kid" is matched against the "kid" header value of the signed or encrypted message [S1 §4.5]. The RFC's own example is choosing among the keys in a JWK Set during key rollover, the switch from one key to the next [S1 §4.5]. The structure of a kid value is left unspecified, and the member itself is optional [S1 §4.5].
6. **The recipient skips what it does not understand.** Members a recipient does not understand must be ignored [S1 §4]. Within a set, implementations should ignore keys whose type they do not understand, that lack required members, or whose values are out of the supported range [S1 §5].
7. **The recipient decides whether to trust the key.** The format leaves that decision to the application. In almost all cases, the RFC says, applications trust a key based on attributes bound to it, such as names, roles and where the key came from, rather than on the key itself [S1 §9.1]. Its two example ways to bind them are a certificate the application validates and a JSON Web Token (JWT) that carries the key as a claim [S1 §9.1].

## Why does JSON Web Key (JWK) matter now?

Keys written as JWKs are turning up in new protocols this year. In the Web Bot Auth working-group draft, revision -01 of 29 October made every Signature-Agent header value a direct link to a JWK Set, and dropped the earlier forms [BI-FIND-2026-1787](https://insights.bostonidentity.com/ref/BI-FIND-2026-1787). That draft is young: it became a working-group document on 1 September 2026, and its tracker page shows no shepherd and no responsible area director yet [BI-FIND-2026-1787](https://insights.bostonidentity.com/ref/BI-FIND-2026-1787).

New algorithms are arriving in the same format. RFC 9964 says an ML-DSA private key in JOSE and COSE, the JSON and binary families of signing formats, must be a 32-byte seed, and that the private member "priv" must not appear in a public key [BI-FIND-2026-1693](https://insights.bostonidentity.com/ref/BI-FIND-2026-1693). For its Algorithm Key Pair (AKP) key type, a JWK Thumbprint covers kty, alg and pub, and the private seed is not one of the inputs [BI-FIND-2026-1695](https://insights.bostonidentity.com/ref/BI-FIND-2026-1695).

A Huawei draft for authorization servers is strict about where keys come from: it says before the server conveys a key from its own records, it must verify control of the matching private key, unless a trusted provisioning process already has, because "Merely receiving a public key is not proof of private-key control." [BI-FIND-2026-1155](https://insights.bostonidentity.com/ref/BI-FIND-2026-1155) The same draft notes that revoking a key leaves already-issued JWT access tokens unchanged, and that for prompt revocation, its authors say, deployments should use short-lived tokens, introspection or both [BI-FIND-2026-1155](https://insights.bostonidentity.com/ref/BI-FIND-2026-1155).

## Where does it fit?

- Compared with JSON Web Signature: JWS is the format for a signed message, and JWK is the format for a key. A JWS header can name its verification key with "kid" or carry it outright with "jwk" [BI-FIND-2015-0024](https://insights.bostonidentity.com/ref/BI-FIND-2015-0024), and the recipient matches that kid against a JWK [S1 §4.5].
- Compared with JWT: A JWT is a token of claims. RFC 7517 gives it a second job beside JWK: a JWT can carry a JWK, or a TLS-secured link to one, as a claim, so the application can weigh the token's properties when deciding whether to trust the key [S1 §9.1].
- Compared with ES256: ES256 is a signing algorithm, an entry in the registries that JWA set up [BI-FIND-2015-0022](https://insights.bostonidentity.com/ref/BI-FIND-2015-0022). A JWK's optional "alg" member can name the algorithm intended for a key [S1 §4.4].

## What goes wrong?

- Trusting a key because it parsed. RFC 7517 says to place no more trust in data secured by a key than in the method by which the key was obtained [S1 §9.1]. RFC 8725 adds that when a JWT names its issuer, the application must check that the signing keys belong to that issuer [BI-FIND-2020-0012](https://insights.bostonidentity.com/ref/BI-FIND-2020-0012).
- Letting a token say where its key lives. RFC 8725 treats key-finding headers as untrusted input: applications should validate "kid" so it cannot open SQL or LDAP injection, and should guard against server-side request forgery through "jku" or "x5u" URLs [BI-FIND-2020-0012](https://insights.bostonidentity.com/ref/BI-FIND-2020-0012).
- Leaving private keys in the clear. Private and symmetric keys must be protected from disclosure, and the RFC recommends encrypting a JWK or JWK Set that holds them as a JWE [S1 §7, §9.2].
- Blocking a key by its thumbprint. RFC 7638 warns that comparing JWK thumbprints is not a reliable way to exclude particular keys, since an altered key can look different and, in its example, still work about a third of the time [BI-FIND-2015-0037](https://insights.bostonidentity.com/ref/BI-FIND-2015-0037).
- Counting on purpose limits nobody checks. "use" and "key_ops" are optional unless the application requires them [S1 §4.2, §4.3], so we read enforcing them as the verifier's job.

## What should a security leader ask?

1. Where does each of our services fetch signing keys from, and is that location fixed in configuration rather than taken from the token's own header?
2. For each key in the JWK Sets we accept, what tells us who stands behind it: a certificate we validate, a signed token, or only the URL it came from?
3. Are any private or symmetric keys stored or sent as plain, unencrypted JWKs, and where?
4. Do our verifiers check "use", "key_ops" or "alg", or only the key type?
5. When we roll over a signing key, how long does the old key stay in the set, and who removes it?

## Sources

- [S1] [JSON Web Key (JWK), RFC 7517](https://www.rfc-editor.org/rfc/rfc7517) (IETF, Standards Track, May 2015)

## Evidence

- [BI-FIND-2026-1787](https://insights.bostonidentity.com/ref/BI-FIND-2026-1787): The draft first appeared as a working-group document on 1 September 2026, and revision -01 of 29 October narrows the Signature-Agent header to one form: every value is now a direct link to a JSON Web Key Set, and the earlier "directory", "jwks_uri" and "cimd" types are gone. It also recommends that an origin expecting a signature ask for one with the Accept-Signature header. The implementations the draft lists, which it calls "a couple of public implementations", are all grouped under earlier individual revisions, beside a Cloudflare demonstration server. The datatracker shows no shepherd and no responsible area director yet. (from "Web Bot Auth's working-group draft names a bot by its key URL and defines no revocation")
- [BI-FIND-2026-1693](https://insights.bostonidentity.com/ref/BI-FIND-2026-1693): RFC 9964 requires ML-DSA private information in JOSE and COSE to use a 32-byte seed: priv MUST be that seed and MUST have that length. The expanded private key is not a serialization option in this profile. In the generic Algorithm Key Pair (AKP) structure, alg and pub are REQUIRED, and priv MUST NOT appear in a public key. JWK key parameters are base64url encoded; COSE keys carry the byte strings without that encoding. The authors choose one compact representation to aid interoperability; they do not report an interoperability test. (from "RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSE")
- [BI-FIND-2026-1695](https://insights.bostonidentity.com/ref/BI-FIND-2026-1695): RFC 9964 defines AKP thumbprints for algorithms beyond ML-DSA as well. When computing a COSE Key Thumbprint under RFC 9679, the required parameters are kty (label 1, integer value 7), alg (label 3, integer value) and pub (label -1, byte string). When computing a JWK Thumbprint under RFC 7638, the required fields are kty, alg and pub, with the lexicographic order alg, kty, pub. These rules select public key material and the algorithm for the thumbprint; the private seed is not one of the required inputs. (from "RFC 9964 fixes ML-DSA private keys at a 32-byte seed in JOSE and COSE")
- [BI-FIND-2026-1155](https://insights.bostonidentity.com/ref/BI-FIND-2026-1155): The key has to come from the authorization server's own records, and the draft closes the shortcuts around that. Before conveying a key, the server must authenticate the subject (or rely on a trusted provisioning process) and verify control of the private key unless such a process already has: "Merely receiving a public key is not proof of private-key control." It must not copy a key the client supplied in a request into subject_keys without establishing it through that same process, and a client's ordinary access or refresh token must not, by itself, be enough to create, replace or reactivate a key. The resource server must not accept a key from the client or from the evidence, must pick exactly one key by an integrity-protected key id or another unambiguous rule, and, when it introspects, must use that answer rather than merge it with the token's copy. Revoking a key leaves already-issued JWT access tokens unchanged; for prompt revocation the authors say deployments should use short-lived tokens, introspection or both. (from "In Huawei's reworked OAuth draft, evidence signed by the token's subject can narrow access but never widen it")
- [BI-FIND-2015-0024](https://insights.bostonidentity.com/ref/BI-FIND-2015-0024): RFC 7515 lets a JWS header identify its verification key or carry it outright, through the jku, jwk, kid, x5u, x5c, x5t and x5t#S256 parameters, and leaves the decision to trust that key to the application. Section 6 says these parameters MUST be integrity protected only if what they convey is used in a trust decision. They need not be when the key is the only thing trusted, because a swapped key makes validation fail. Section 10.3 says the way public keys are obtained must authenticate their origin, "otherwise, it is unknown what party signed the message." For MAC keys the RFC adds that a valid MAC shows only that one of the key's holders made the message, and cannot prove origin to a third party. (from "RFC 7515 lets a signed JSON object name or carry its own key, and leaves trusting that key to the application")
- [BI-FIND-2015-0022](https://insights.bostonidentity.com/ref/BI-FIND-2015-0022): RFC 7518 keeps the algorithm lists out of the JWS, JWE and JWK specs so that those specs can stay unchanged as algorithms gain or lose standing. In 2015 it set up IANA registries for algorithms, key types and curves in which each entry carried one of five levels: Required, Recommended, Optional, Deprecated or Prohibited. Changing a level needed a new specification, reviewed by the registry's Designated Experts. The 2015 tables already marked the direction of travel. RSA1_5 key transport was Recommended with a minus mark, meaning likely to be lowered, while RSA-OAEP, ECDH-ES, ES256, the EC key type and the P-256 curve carried plus marks. No initial entry was Deprecated or Prohibited, and no key-management algorithm was Required; the Required entries outside signing were A128CBC-HS256 and A256CBC-HS512 for JWE content encryption and the RSA and oct key types. The RFC Editor lists RFC 9864 as a later update to this RFC. (from "RFC 7518 (2015) required one JWS signing algorithm, the shared-secret HS256, and barred accepting "none" by default")
- [BI-FIND-2020-0012](https://insights.bostonidentity.com/ref/BI-FIND-2020-0012): When a JWT carries an "iss" claim, RFC 8725 says the application MUST check that the signing keys belong to that issuer and MUST reject the token if they do not. If one issuer issues JWTs meant for more than one relying party, the token MUST carry an "aud" claim, and the recipient MUST reject it when the audience is missing or is not its own. Headers used to find keys are treated as untrusted input: applications should validate or sanitise "kid" so it cannot open SQL or LDAP injection, and SHOULD guard against server-side request forgery through "jku" or "x5u" URLs, for example by matching them against a list of allowed locations. (from "RFC 8725: the caller, not the JWT header, picks the algorithm, and "none" is discouraged, not banned")
- [BI-FIND-2015-0037](https://insights.bostonidentity.com/ref/BI-FIND-2015-0037): RFC 7638's security section says a thumbprint is unique to a key only if the implementation also checks that the key uses its one correct representation. An RSA exponent written "AAEAAQ" instead of "AQAB" gives a different thumbprint for what could be effectively the same key, at least in implementations that are lax about the values they accept. An attacker can also transform a legitimate key, for instance by supplying modulus 3*N in place of N, and the altered key "would still work about 1/3 of the time" while looking like a different key. Jones and Sakimura conclude that thumbprints are useful for identifying legitimate keys, but that comparing them "is not a reliable means of excluding (blacklisting)" particular keys. They add that a symmetric key's thumbprint can leak information about the key and should typically be concealed from anyone who does not hold it, unless the hash is known to protect the key value. (from "A JWK thumbprint identifies a known key, and RFC 7638 warns it cannot reliably block one")

---

© 2026 Boston Identity LLC. All rights reserved. Published by Boston Identity LLC.
Quote up to 100 words with the credit "Boston Identity, IAM Insights" and a link to https://insights.bostonidentity.com/glossary/jwk as the source. Claim numbers may be cited freely. Training, fine-tuning and text-and-data-mining use of this page is permitted.
Terms: https://insights.bostonidentity.com/terms · How to cite: https://insights.bostonidentity.com/cite
