Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @backstage/plugin-auth-backend
  4. ›
  5. GHSA-38hq-7x33-php4

GHSA-38hq-7x33-php4: @backstage/plugin-auth-backend: Unauthenticated OAuth account takeover via `redirect_uri` allowlist bypass

July 24, 2026

The allowlist matching used by the experimental dynamic client registration and client ID metadata document (CIMD) features in @backstage/plugin-auth-backend matched glob patterns against the full URL string. A * wildcard could therefore match across URL component boundaries: a pattern such as https://*.example.com/callback, intended to allow subdomains of a trusted host, would also match an attacker-controlled URL such as https://attacker.example/x.example.com/callback. This applies to auth.experimentalDynamicClientRegistration.allowedRedirectUriPatterns as well as the allowedClientIdPatterns and allowedRedirectUriPatterns options of auth.experimentalClientIdMetadataDocuments.

An attacker could use this to register an OAuth client whose redirect URI points to a host they control while still passing the allowlist, causing authorization codes to be delivered to the attacker when a victim completes an authorization flow. In addition, allowlist patterns without an explicit protocol could match URLs with any protocol, and redirect URIs containing embedded credentials (user:pass@host) were accepted after the credentials were stripped for matching.

The practical impact is limited. Both features are experimental and disabled by default, and the default allowlist patterns only reference fixed or loopback hosts and are not affected. Deployments are only impacted if they enable one of these features and configure custom allowlist patterns that contain a wildcard in the hostname, or patterns without an explicit protocol.

References

  • github.com/advisories/GHSA-38hq-7x33-php4
  • github.com/backstage/backstage/commit/274acc51d22a7dd919cdda49d9086cf12c0b8711
  • github.com/backstage/backstage/commit/6370e53bce8b227c63092300594ffde29c006886
  • github.com/backstage/backstage/commit/ef606a85545cb6d765e20afd1ff43ae5407a3660
  • github.com/backstage/backstage/commit/fdc0d2dcd9a571e3839d7f5de4133c4e242a3a41
  • github.com/backstage/backstage/releases/tag/v1.53.0
  • github.com/backstage/backstage/security/advisories/GHSA-38hq-7x33-php4

Code Behaviors & Features

Detect and mitigate GHSA-38hq-7x33-php4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.29.2

Fixed versions

  • 0.29.2

Solution

Upgrade to version 0.29.2 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-601: URL Redirection to Untrusted Site ('Open Redirect')

Source file

npm/@backstage/plugin-auth-backend/GHSA-38hq-7x33-php4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:16 +0000.