)]}'
{
  "commit": "c1ced0e85c435b7abff18779744453eaf100ce74",
  "tree": "2b4a9fbaa590627ceb088891f0b4c29969ab5339",
  "parents": [
    "b09c59e963b6a517f67832c5247c9829399b3725"
  ],
  "author": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Tue Nov 17 17:09:44 2026 -0500"
  },
  "committer": {
    "name": "Ben Collins",
    "email": "bcollins@libjwt.io",
    "time": "Tue Nov 17 19:26:51 2026 -0500"
  },
  "message": "jwt: reject unsigned tokens unless JWT_ALG_NONE is allowed\n\nA jwt_checker_t with no key, no keyring and no embedded-JWK verification\naccepted an unsigned (\"alg\":\"none\") Compact token by default. That is\neasy to hit by accident: a keyless checker whose verify callback picks the\nkey by \"kid\" leaves config-\u003ekey NULL on a miss and returns 0, and a forged\nunsigned token then verifies (the keyed/keyring variants were closed by\nGHSA-mhc9-xvg5-qg29; the keyless default remained).\n\nPer RFC 8725 §3.2 (\"Do not trust received claims ... SHOULD NOT accept\n\u0027none\u0027\") accept an unsigned token only when the application asks for it.\njwt_typ_alg_ok() already enforces jwt_checker_setalgs(): a non-empty\nallowlist that lists JWT_ALG_NONE accepts a none token and one that omits\nit rejects it. The only gap was the empty-allowlist default, which\naccepted any alg. It now accepts any signed algorithm but rejects\njwt-\u003ealg \u003d\u003d JWT_ALG_NONE, with a specific \"Unsigned tokens are not\nallowed\" message. Listing JWT_ALG_NONE via jwt_checker_setalgs() is the\nsingle, supported opt-in; no new exported symbol is added, so this stays a\nrevision-only ABI change.\n\nKeyed, keyring and embedded-JWK checkers are unchanged (a none token to\nthem stays rejected). The JSON-serialization path is unaffected:\nbuild_sig_entry() already refuses \"alg\":\"none\" there, so the new default\nnever fires on it.\n\njwt-verify(1) followed the old library default; it now opts in explicitly\nwith \"-a none\" (wired to jwt_checker_setalgs()), and rejects an unsigned\ntoken without it. Docs (jwt_builder_setkey() table note, jwt_checker_setkey(),\njwt_checker_setalgs() and the verify-callback warning) and the tests\n(check + bats, both JSON backends) are updated for the new default.\n\nCo-Authored-By: Claude Opus 4.8 \u003cnoreply@anthropic.com\u003e\nSigned-off-by: Ben Collins \u003cbcollins@libjwt.io\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "2ea6137b44197054408310975448334c99a08c53",
      "old_mode": 33188,
      "old_path": "include/jwt.h",
      "new_id": "795cd0caf0bfbacea9cd1c7f150eece60af702d5",
      "new_mode": 33188,
      "new_path": "include/jwt.h"
    },
    {
      "type": "modify",
      "old_id": "52aa814ec92803b75691a63665f38cb05afde5dd",
      "old_mode": 33188,
      "old_path": "libjwt/jwt-verify.c",
      "new_id": "931f3ffd7eb62e5b47b2243182ee92695230b17e",
      "new_mode": 33188,
      "new_path": "libjwt/jwt-verify.c"
    },
    {
      "type": "modify",
      "old_id": "2ffede71d2ceed4e7739d2b343102e5e136d1771",
      "old_mode": 33261,
      "old_path": "tests/jwt-cli.bats",
      "new_id": "65307788611a9da10e63fc46b0d4953d6b8a7a50",
      "new_mode": 33261,
      "new_path": "tests/jwt-cli.bats"
    },
    {
      "type": "modify",
      "old_id": "5113a1327a9a6ba0168238bf59a69a3010d38cc8",
      "old_mode": 33188,
      "old_path": "tests/jwt_checker.c",
      "new_id": "7228ef1d57717337f88eabf9bb740743dad259b1",
      "new_mode": 33188,
      "new_path": "tests/jwt_checker.c"
    },
    {
      "type": "modify",
      "old_id": "415591a9df3f574628a3d579f16489ba070cd962",
      "old_mode": 33188,
      "old_path": "tests/jwt_key_error.c",
      "new_id": "c2e99e64ccd00a5b751b9a59475a8b844f0c91d3",
      "new_mode": 33188,
      "new_path": "tests/jwt_key_error.c"
    },
    {
      "type": "modify",
      "old_id": "dd6f2d0d85c7868bcb5ba775b0afc264c7122d3b",
      "old_mode": 33188,
      "old_path": "tests/jwt_security.c",
      "new_id": "4abd8a7e424ef480b70ad3281096cadff16b8990",
      "new_mode": 33188,
      "new_path": "tests/jwt_security.c"
    },
    {
      "type": "modify",
      "old_id": "509c3e848a946b69e37729d59838bc43000e1647",
      "old_mode": 33188,
      "old_path": "tests/jwt_tests.h",
      "new_id": "837c5849853945e9750c9b732da107b4186f6d10",
      "new_mode": 33188,
      "new_path": "tests/jwt_tests.h"
    },
    {
      "type": "modify",
      "old_id": "29ba627f70aea4e0ff2dd25290a58c3bedf4d8b0",
      "old_mode": 33188,
      "old_path": "tools/jwt-verify.c",
      "new_id": "2bd299373424d308440c4e319217eec165d0b916",
      "new_mode": 33188,
      "new_path": "tools/jwt-verify.c"
    }
  ]
}
