Effective 1 February 2027 GitHub will no longer accept OAuth flows that use a redirect URI with a # fragment. Any GitHub App or OAuth app that currently registers such a callback will see requests rejected, warnings in the settings UI, and caution messages presented to end‑users. Engineers responsible for authentication, CI/CD pipelines, or automated integrations must treat this as a breaking change.
Scope of the deprecation
The policy applies to all GitHub.com plans – Free, Team, and Enterprise Cloud – and covers both GitHub Apps and OAuth apps that specify a fragment in their callback URL. It does not affect GitHub Enterprise Server installations. After the enforcement date, registration of new redirect URIs containing fragments will be blocked, and existing ones will be rejected at runtime.
Security rationale
Fragments are not defined in the OAuth 2.0 specification (RFC 6749 §3.1.2.3). Because the fragment portion of a URL is processed only by the user agent, it can be intercepted or manipulated during the redirect, potentially exposing an authorization code or token. GitHub’s decision removes this attack surface by enforcing spec‑compliant URIs.
Required remediation steps
- Audit all registered GitHub Apps and OAuth apps for
#fragments in their callback URLs. - Remove the fragment portion from each affected URL; the base path must end before any
#character. - Update any code, configuration files, or CI/CD variables that reference the old URLs.
- Test the authentication flow after the change to confirm that the authorization code is returned to the expected endpoint.
- Monitor the GitHub app settings UI for the deprecation warning and verify that no new warnings appear after remediation.
Related CloudNinjas coverage: security.
What This Means For Practitioners
Treat the fragment removal as a mandatory update before the February 2027 deadline. Incorporate the check for URL fragments into your CI/CD validation pipelines to prevent future regressions. Keep an eye on GitHub’s app settings for any lingering warnings, and verify that your production environments continue to receive successful OAuth redirects after the change.
