Join our Newsletter — 33% off our NHI Course
Authentication, Authorisation & Trust

JWT Public Key

← Back to Glossary
By NHI Mgmt Group Updated November 3, 2026 Domain: Authentication, Authorisation & Trust

A JWT public key is the public part of an asymmetric key pair used to verify the digital signature on a JSON Web Token. The issuer keeps the private key and publishes the public key so verifiers can confirm token integrity and authenticity without being able to mint valid tokens.

What JWT Public Keys Do

A JWT public key is not used to create a token, it is used to verify one. The verifier checks the token’s digital signature against the published public key, which confirms that the JWT was signed by the matching private key and has not been altered in transit.

This separation of duties is what makes asymmetric JWT verification useful at scale: issuers can keep signing keys private while many services, gateways, and applications verify tokens independently without sharing the signing secret.

That design matters most when a JWT is acting as an access token or assertion. The public key does not grant authority by itself, but it becomes a trust anchor for every downstream decision that depends on the token’s signature being genuine.

How Verification, Issuers, and Key Discovery Fit Together

In practice, the public key is usually published through a JWKS endpoint, a metadata document, or another issuer-controlled discovery mechanism. Verifiers need a reliable way to locate the right key, match it to the token header or issuer metadata, and reject tokens when the key source is stale, ambiguous, or untrusted.

Key selection is as important as signature checking. If a verifier accepts the wrong key, accepts an unpinned source, or trusts a key because it is present rather than because it belongs to the expected issuer, the signature check no longer proves what it is supposed to prove.

Operationally, public-key handling also includes rotation and retirement. When issuers change signing keys, verifiers must refresh cached keys and keep validating only against the issuer’s current trust set, otherwise legitimate tokens may fail or old keys may remain trusted longer than intended.

What Can Go Wrong When Public-Key Validation Is Weak

JWT public key handling becomes risky when systems treat “has a valid signature” as the same thing as “is safe to trust.” A token can still be maliciously constructed, incorrectly scoped, or accepted by the wrong audience even if the cryptography checks out.

Weaknesses often appear in key discovery, algorithm handling, caching, and issuer trust decisions. The danger is not the public key itself, but the verification path around it: hard-coded keys, unchecked JWKS fetches, stale caches, and permissive header handling can all turn a sound cryptographic design into a brittle trust chain.

For practical guidance on the surrounding controls, see the JWT Security Guide, which covers validation, algorithm pinning, JWKS handling, and common JWT attack patterns.

JWT Public Keys in Operational Security Practice

Teams often learn that public-key verification is only as strong as the lifecycle around it. Rotation, revocation, issuer discovery, and cache freshness all need ownership, because the verifier’s trust decision depends on those moving parts staying aligned with the issuer.

When the token is used as a bearer credential, the public key also becomes part of the access-control boundary. If a signing key is exposed or a verifier accepts forged tokens, the impact can be account takeover, unauthorized API access, or trust collapse across many dependent services.

For a broader view of token handling, compare JWT verification with the surrounding session and token controls in the Token and Session Security Guide. If your use case involves service-to-service identity, the Guide to SPIFFE and SPIRE shows how public-key trust is applied in workload identity systems.

Risk and Threat Considerations

JWT public-key failures are dangerous because they can let an attacker turn token verification into token forgery acceptance. If a verifier trusts the wrong key, a stale key, or an attacker-influenced discovery path, the attacker may be able to present a token that appears cryptographically valid but should never have been trusted.

Failure mechanism: The control fails when issuer trust, key lookup, or key rotation is wrong, allowing forged or stale-signed tokens to pass signature validation.

Impact: Unauthorized access can follow across APIs, applications, and federated services, especially when the token represents a high-value identity or privileged session.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST SP 800-57 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementJWT public keys rely on lifecycle-managed signing keys and verifier trust.
IA-9 — Identification and Authentication (Service and Device)JWT verification commonly protects service-to-service and workload authentication paths.
Recommendation — Manage signing-key lifecycle and verifier trust so token validation only accepts current issuer keys. Use asymmetric verification to authenticate service tokens without exposing private signing keys.
NIST SP 800-57Recommendation for Key Management, Part 1Defines public-key lifecycle, rotation, and cryptoperiod practices relevant to JWT signing keys.
Recommendation — Rotate and retire signing keys on a defined cryptoperiod and refresh verifier caches promptly.
OWASP ASVSV10 — OAuth and OIDCJWT public keys are central to validating issuer signatures in OAuth and OIDC token flows.
Recommendation — Validate issuer keys, token claims, and trust anchors before accepting OAuth or OIDC tokens.
OWASP API Security Top 10API2 — Broken AuthenticationInvalid JWT key handling can let forged tokens satisfy API authentication checks.
Recommendation — Harden JWT verification so APIs reject forged, stale, or attacker-controlled tokens.

Practitioner Guidance

Why practitioners should care: The public key is part of the trust boundary, not just a cryptographic detail. Treat key source, key freshness, and issuer matching as security controls with clear ownership, monitoring, and failure handling.

What to watch for: Cache drift, unexpected key changes, unpinned discovery sources, and token acceptance after rotation are warning signs that verification trust may be weaker than intended.

Practitioner takeaway: Verify the signature, then verify the trust path that delivered the key, because the second check is what keeps the first one meaningful.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org