GHSA-q333-f498-w2x7

Suggest an improvement
Source
https://github.com/advisories/GHSA-q333-f498-w2x7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-q333-f498-w2x7/GHSA-q333-f498-w2x7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q333-f498-w2x7
Aliases
Published
2026-10-07T20:25:25Z
Modified
2026-10-07T20:30:04Z
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: Insufficient audience validation in the Cloudflare Access auth provider
Details

Impact

The Cloudflare Access auth provider verifies a token's signature and team issuer, but affected versions do not verify that the token was issued for the Backstage application. A user holding a valid token for another Access application in the same Cloudflare Zero Trust team may therefore be able to authenticate to Backstage if that token reaches the auth endpoint without the Backstage application's audience already being enforced upstream.

Cloudflare Access normally evaluates the protected application before forwarding requests. The reported reproduction exercises the provider directly and does not demonstrate bypass through the ordinary Cloudflare-protected Backstage URL. Relevant deployment topologies include direct origin access, alternate routes around the intended Access application, or another proxy forwarding the assertion unchanged.

A successful sign-in also depends on the deployment's sign-in resolver mapping the presented identity to a Backstage user. The resulting impact depends on the permissions assigned to that identity.

Patches

Upgrade @backstage/plugin-auth-backend-module-cloudflare-access-provider to version 0.5.0 or later. The fixed package is available in Backstage v1.55.0.

This is a breaking configuration change. Before upgrading, set auth.providers.cfaccess.audience to the Audience (AUD) tag for the Backstage application in Cloudflare Zero Trust:

auth:
  providers:
    cfaccess:
      teamName: example
      audience: ${AUTH_CFACCESS_AUDIENCE}

Workarounds

  • Restrict access to the Backstage auth endpoint to the intended Cloudflare Access application.
  • Use a custom authenticator that validates the application audience.
  • Disable the provider until the patched package can be deployed.
Database specific
{
    "cwe_ids": [
        "CWE-287"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-10-07T20:25:25Z",
    "nvd_published_at": "2026-10-06T21:17:16Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / @backstage/plugin-auth-backend-module-cloudflare-access-provider

Package

Name
@backstage/plugin-auth-backend-module-cloudflare-access-provider
View open source insights on deps.dev
Purl
pkg:npm/%40backstage/plugin-auth-backend-module-cloudflare-access-provider

Affected ranges

Type
SEMVER
Events
Introduced
0.1.0
Fixed
0.5.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-q333-f498-w2x7/GHSA-q333-f498-w2x7.json"