GHSA-xm5q-p7w3-x6cp

Suggest an improvement
Source
https://github.com/advisories/GHSA-xm5q-p7w3-x6cp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-xm5q-p7w3-x6cp/GHSA-xm5q-p7w3-x6cp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xm5q-p7w3-x6cp
Aliases
Published
2026-10-07T20:23:52Z
Modified
2026-10-07T20:30:06Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Backstage: Explicit negative email verification can be ignored during shared OAuth profile normalization
Details

Impact

Several Passport-based authentication providers use shared OAuth profile normalization from @backstage/plugin-auth-node. Affected versions may pass an email to email-based sign-in resolvers even when verification metadata supplied for that same address is explicitly negative. The ID-token-only fallback likewise did not consistently respect email_verified: false.

Exploitation requires a deployment where an admitted identity-provider user can supply or change an email address without verification and Backstage uses that profile email to resolve catalog identities. In that configuration, the user may be able to assume another catalog identity and obtain its associated access and permissions.

An absent email_verified claim is not by itself considered an affected condition. Some providers rely on authoritative organizational provisioning and intentionally omit the optional claim. Operators using email-based sign-in resolution must ensure that the configured provider restricts sign-in to the intended user population and supplies an authoritative email address, either through provider verification or trusted immutable provisioning.

This advisory covers the shared Passport profile normalization path when the selected profile email itself carries verified: false, when a matching raw provider email carries email_verified: false, or when an email obtained only from an ID token carries email_verified: false. It does not apply verification metadata from a different address or from a separate ID token to an independently fetched provider-profile email.

The generic OIDC provider follows a separate profile transform and is covered by GHSA-826h-28h9-65hg. The two advisories are complementary; deployments using both affected paths should apply both package updates. VMware Cloud uses a separate custom token transformation and is not changed by this patch.

Patches

Fixed in @backstage/plugin-auth-node versions 0.6.15 and 0.7.5. Users remaining on the 0.6.x line should upgrade to at least 0.6.15; users on 0.7.x should upgrade to at least 0.7.5.

The patched packages were released with Backstage v1.49.7 and Backstage v1.54.7, respectively. The fix is also present on master in commit 507e65a.

Workarounds

  • Require the identity provider to verify user-controlled email addresses before allowing sign-in.
  • Ensure profile emails are immutable and provisioned from a trusted organizational source.
  • Use a sign-in resolver that does not depend on the profile email.
  • Use a custom profile transform that omits an email when matching provider metadata explicitly marks it as unverified.
Database specific
{
    "cwe_ids": [
        "CWE-287"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-07T20:23:52Z",
    "nvd_published_at": "2026-10-06T21:17:16Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / @backstage/plugin-auth-node

Package

Name
@backstage/plugin-auth-node
View open source insights on deps.dev
Purl
pkg:npm/%40backstage/plugin-auth-node

Affected ranges

Type
SEMVER
Events
Introduced
0.3.0
Fixed
0.6.15

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-xm5q-p7w3-x6cp/GHSA-xm5q-p7w3-x6cp.json"

npm / @backstage/plugin-auth-node

Package

Name
@backstage/plugin-auth-node
View open source insights on deps.dev
Purl
pkg:npm/%40backstage/plugin-auth-node

Affected ranges

Type
SEMVER
Events
Introduced
0.7.0
Fixed
0.7.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-xm5q-p7w3-x6cp/GHSA-xm5q-p7w3-x6cp.json"