This CVE reveals a fundamental architectural flaw in how GitHub Enterprise Server validated authorization for pull request resources. The token scoping logic relied on the combination of repository name and PR number as a unique security boundary—but these are user-controlled, non-unique identifiers that exist within organizational namespaces, not globally. An attacker could create a repository and pull request with names matching a target organization's private resources, then access those resources by presenting a token scoped to their own identically-named repository.
The critical detail: globally unique repository identifiers already existed in GitHub's internal data model but weren't consistently used for authorization decisions. The human-readable identifiers were the convenient path through the codebase—naturally flowing through logs, naturally used in development—and using UUIDs required extra lookups and cognitive overhead. The fix required auditing and refactoring multiple code paths to enforce consistent use of global IDs, which is expensive work that only happens after a vulnerability is found.
For defenders: audit your own API authorization logic for patterns that combine user-controlled names with numbers as the sole uniqueness constraint. Any endpoint that scopes access by (resource_name, resource_number) without a namespace or global ID component is vulnerable to the same namespace collision class. Check authentication tokens, signed URLs, and session tokens for similar scoping assumptions. The GitHub fix backported across five release trains (3.17.x through 3.21.x) indicates this pattern was embedded in multiple code paths—this is likely true in your systems too.
The broader lesson: human-readable identifiers are ergonomic for developers but should never serve as security boundaries in multi-tenant environments. The moment you trust a name as unique, an attacker will claim that name in a different namespace.