CVE-2026-42560: Cve 2026 42560 Oauth User Id Self Hash Collision

'$VAR.ID' is assigned by hashing its own current (uninitialized) value. If '$VAR' was freshly allocated with a zero-value struct literal, '$VAR.ID' is the empty string at this point, so every OAuth user receives the same derived identity — the hash of "" — enabling cross-account access and privilege confusion (CWE-287, CVE-2026-42560). Use the actual externa

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-42560-cve-2026-42560-oauth-user-id-self-hash-collision --engine opengrep

Description

'$VAR.ID' is assigned by hashing its own current (uninitialized) value. If '$VAR' was freshly allocated with a zero-value struct literal, '$VAR.ID' is the empty string at this point, so every OAuth user receives the same derived identity — the hash of "" — enabling cross-account access and privilege confusion (CWE-287, CVE-2026-42560). Use the actual externa