Algorithm confusion
A server built for RS256 that also accepts HS256 may verify an HMAC token using the RSA public key as the secret. The public key is public, so anyone can then sign whatever claims they like. Pin the expected algorithm on the server instead of reading it from the header.