Skip to content

GitHub will reject OAuth redirect URIs with a # fragment

From 1 February 2027, GitHub rejects OAuth and GitHub App authorization requests whose registered callback URL contains a URL fragment. Warnings show now.

Source: GitHub

GitHub is deprecating OAuth and GitHub App callback URLs that contain a # fragment. From 1 February 2027, authorization requests using a redirect URI with a fragment will be rejected outright.

Fragment-based redirect URIs aren’t valid under RFC 6749 section 3.1.2.3, and GitHub says they’re a security risk: a fragment can be used to intercept an authorization code or token during the redirect. Until the enforcement date, affected apps see a warning in their settings, and users signing in through them see a caution message. The change applies to github.com on Free, Team and Enterprise Cloud plans, covering both OAuth Apps and GitHub Apps. GitHub Enterprise Server is not affected.

GitHub’s advice is blunt: “If your app’s callback URL includes a fragment, remove it now to avoid disruption.” There’s no detail beyond that in the changelog post itself, just a pointer to the OAuth Apps and GitHub Apps callback URL docs.

Why it matters: if you registered a callback URL with a # anywhere in it, your sign-in flow keeps working today but starts failing outright on 1 February 2027. Check your app’s registered redirect URIs now rather than waiting for the warning banner to turn into an outage.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)