Join our Newsletter — 33% off our NHI Course
Home Glossary Cyber Security alg:none
Cyber Security

alg:none

← Back to Glossary
By NHI Mgmt Group Updated August 24, 2026 Domain: Cyber Security

alg:none is a JWT header value that indicates no digital signature is present. In secure implementations, tokens using this setting should be rejected unless a very specific, trusted use case exists. Accepting it broadly can allow attackers to forge claims and bypass authentication controls.

Expanded Definition

alg:none is a JWT header value that signals the token carries no cryptographic signature. That makes it fundamentally different from a signed JWT, where the header, payload, and signature together support integrity checking and receiver trust decisions. In practice, this setting belongs only in tightly constrained, explicitly trusted workflows, if it is used at all. For most security programmes, the correct default is rejection, because the absence of a signature means the claims can be altered without detection.

Industry guidance is consistent on the risk, but usage details still vary across implementations and libraries. Some systems treat alg:none as a legacy compatibility path, while others block it outright to prevent downgrade attacks. The NIST Cybersecurity Framework 2.0 does not define JWT algorithms directly, but its emphasis on integrity, access control, and validation makes the operational expectation clear: unauthenticated assertions should not be accepted as proof of identity or authorization.

The most common misapplication is allowing alg:none tokens to pass through production authentication flows when a parser or library fails to enforce signature verification.

Examples and Use Cases

Implementing alg:none rigorously often introduces compatibility constraints, requiring organisations to weigh legacy interoperability against the cost of strict verification and safer defaults.

  • A development environment uses unsigned tokens for local testing, but production gateways reject them before any claims are trusted.
  • An API receives a JWT from an external client, and the validation layer blocks alg:none because the trust boundary requires a verifiable signature.
  • A legacy integration is discovered to accept unsigned tokens; the remediation plan adds explicit allowlisting, migration controls, and audit logging.
  • A security review of an identity service confirms that library defaults do not silently fall back to alg:none when a signature is missing.
  • A federation setup documents a narrowly scoped exception where unsigned assertions are permitted only between pre-established, internal systems with compensating controls.

For protocol context, it is useful to compare JWT handling with the broader expectations in RFC 7519, which defines JWT structure, and RFC 8725, which highlights common JWT implementation pitfalls and defensive validation practices. These references reinforce why signature handling is not optional in normal authentication workflows.

Why It Matters for Security Teams

alg:none matters because it exposes a trust boundary failure, not just a coding mistake. If a service accepts an unsigned JWT as though it were authenticated, an attacker can alter user identity, role claims, session context, or downstream authorizations without breaking any cryptographic check. That creates immediate risk across authentication, authorization, and auditability, especially where JWTs are used between microservices, identity providers, and agentic systems that rely on claims to decide what actions to execute.

Security teams need to treat alg:none as a governance issue as much as a technical one. Validation rules must be explicit, libraries must be configured to reject algorithm confusion and unsigned tokens, and exception handling must be documented if a trusted non-production use case exists. The issue also intersects with identity assurance, because claims-based access decisions are only as strong as the token validation process that precedes them.

Practitioners typically encounter the operational impact only after an authentication bypass, at which point alg:none becomes an unavoidable incident response and remediation priority.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63, NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AA-01JWT validation supports authenticated access decisions and integrity of identity assertions.
NIST SP 800-63Digital identity assurance depends on validating assertions before relying on them.
OWASP Non-Human Identity Top 10Non-human identity systems often use JWTs, making unsigned tokens a direct governance risk.
NIST AI RMFAI systems that consume JWT claims need trustworthy inputs to avoid unsafe decisions.
NIST Zero Trust (SP 800-207)Zero trust requires continuous verification of identity assertions and message integrity.

Ensure machine identity tokens are signed, validated, and never accepted through insecure fallback paths.

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