GitHub will reject OAuth redirect URIs containing URL fragments from February 1, 2027; warnings now appear in app settings
GitHub announced that from February 1, 2027 it will reject OAuth authorization requests whose redirect URI contains a URL fragment. After that date developers will also be unable to register callbacks with a hash. GitHub says fragments are outside the OAuth 2.0 specification and pose a security risk.
Why it matters
According to a GitHub changelog entry dated November 30, 2026, fragments are not part of the OAuth 2.0 specification, which references RFC 6749 section 3.1.2.3, and can be used to intercept an authorization code or token during a redirect. Both OAuth apps and GitHub Apps that register a callback URL containing a fragment are affected.
During the transition, GitHub shows a warning in the app's settings and a caution message to users signing in through affected apps. The change applies to github.com across Free, Team and Enterprise Cloud plans and does not apply to GitHub Enterprise Server.
Developers should review every registered callback URL and the redirect_uri value their code sends, and remove the part after the hash before the deadline. Apps that rely on a hash router for post-login navigation need to move that route to a real path, because after February 1, 2027 a sign-in flow with a fragment will stop working.