A public jwks_uri identifies key distribution, not unexpired signing keys

OAuth and OpenID Connect clients need public keys to verify token signatures. The jwks_uri metadata field points to a JSON Web Key Set document that contains those keys. The endpoint is expected to be reachable. Its presence says something about key distribution. It does not prove that the keys are current, that retired keys have been removed, or that every resource server validates the algorithm and issuer correctly.

RFC 8414 defines jwks_uri as the URL of the authorization server's JWK Set. RFC 7517 defines the JSON Web Key format. OpenID Connect Discovery also lists jwks_uri as provider metadata. These specifications make the field public and machine-readable by design. A defender should treat it as an identity-system artifact, not a secret.

ZoomEye measurement

On November 25, 2026, the exact dork http.body="jwks_uri" was executed with sub_type=all, page 1, and page size 1. It returned 20,242 indexed HTTP-body matches. The count includes discovery documents, client configuration examples, documentation pages, test fixtures, and error pages. It is not a count of JWK endpoints or active issuers.

The body match is useful for finding identity configuration files and application documentation that may reveal an issuer. The next step is an authorized fetch of the actual metadata document, not a broad key-harvesting exercise. Record the URL, issuer, TLS certificate, cache headers, and document hash.

Review the key lifecycle

Fetch the JWK Set from the approved issuer and check the key types, algorithms, key IDs, and intended uses. The endpoint should return keys that match the issuer's advertised signing algorithms. A key set containing an unexpected public-key type or an algorithm that no client should accept is a review finding, not automatically an exploit.

Clients should select a key by issuer, algorithm, key ID, and intended use. They should reject unsigned tokens, unexpected algorithms, duplicate key IDs, and tokens with an audience or issuer that does not match the resource. A valid signature from a key that belongs to a different tenant is still a failed authorization decision.

Review key rotation. New keys should be published before tokens signed by them are issued, and old keys should remain available long enough for cached tokens to expire. A key that stays published indefinitely after retirement is not proof of compromise, but it lengthens the window in which an old token can validate.

Treat metadata as cached policy

The discovery document and JWK Set can be cached by clients, reverse proxies, and CDNs. After a rotation, compare the document hash and cache headers across regions. A stale copy can hide a new key or preserve an old one after the issuer intended to retire it. Record the cache-control and age fields if the response includes them.

Monitor changes to jwks_uri, issuer, algorithms, and key IDs. An unexpected change in the discovery document can be a legitimate migration or a sign that a client is trusting a modified origin. Alert on changes outside the approved identity change record.

Investigate exposure without overclaiming

A public jwks_uri is not a leaked private key. Public verification keys are meant to be distributed. The risk comes from how relying parties use them and whether the endpoint is authentic. Check the certificate, DNS, issuer consistency, and the client's trust configuration.

The 20,242 body matches are a discovery signal. They can help an organization find forgotten issuers or development tenants, but they do not identify vulnerable applications. The useful result is an inventory of issuers and the clients that trust them. For each client, verify issuer, audience, algorithm, key selection, rotation, and revocation behavior.

At the system level, keep private signing keys in a dedicated key service, publish only the public set, automate rotation, and test a retired key after the grace period. The endpoint is public by design. The trust behind it should be deliberate.

References