OSV 1.4.0 · github-reviewed · 修改于 2026-05-15 04:35
发布时间
2026-05-09 08:45
GitHub 审查时间
2026-05-09 08:45
NVD 发布时间
2026-05-14 00:16
源文件
advisories/github-reviewed/2026/05/GHSA-hm8q-7f3q-5f36/GHSA-hm8q-7f3q-5f36.json
Improper validation of the JWT NumericDate claims exp, nbf, and iat in hono/utils/jwt allows tokens with non-spec-compliant claim values to silently bypass time-based checks. This issue is not exploitable by an anonymous attacker; it only manifests when a malformed claim value reaches verify() — typically when the application itself issues such tokens, or when the signing key is otherwise under attacker control.
The validation routine combined option, presence, and threshold checks in a single short-circuiting expression, so several classes of malformed values were silently skipped instead of rejected:
This deviates from RFC 7519 §4.1.4, which defines NumericDate as a finite JSON numeric value.
An actor able to issue tokens accepted by the application may craft tokens whose exp, nbf, or iat claims silently bypass time-based enforcement. This may lead to:
exp configured on the verifier.nbf accepted as currently valid.iat accepted as legitimately issued.Deployments using a well-formed token issuer and protecting the signing key are not affected.