Skip to main content
Vulnerability Database/CVE-2026-106504

CVE-2026-106504: Backstage Information Disclosure Vulnerability

CVE-2026-106504 is an information disclosure vulnerability in Backstage scaffolder backend that exposes sensitive values in task logs. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-106504 Overview

Backstage, the open framework for building developer portals, contains a sensitive information exposure vulnerability in the @backstage/plugin-scaffolder-backend package prior to version 4.1.0. The flaw allows an authenticated user with permission to create and read scaffolder tasks to observe sensitive values written into task logs. Exploitation requires a denied action whose input contains sensitive data, combined with restrictive action permissions and affected templates. The issue is tracked as [CWE-532: Insertion of Sensitive Information into Log File] and is fixed in Backstage version 4.1.0.

Critical Impact

Authenticated Backstage users can read secrets, tokens, or credentials passed as inputs to denied scaffolder actions through task log output.

Affected Products

  • Backstage @backstage/plugin-scaffolder-backend package prior to 4.1.0
  • Backstage deployments using restrictive scaffolder action permissions
  • Backstage templates passing sensitive values as action inputs

Discovery Timeline

  • 2026-10-06 - CVE-2026-106504 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-106504

Vulnerability Analysis

The vulnerability resides in the NunjucksWorkflowRunner.ts component of the scaffolder backend. When the scaffolder evaluates whether an action is authorized to execute, it calls isActionInputAuthorized with the action input. If authorization is denied, the runner throws a NotAllowedError whose message serializes the entire action input via JSON.stringify. That serialized input is written to the scaffolder task log, which authenticated users with task-read permission can retrieve.

Templates frequently pass secrets, API tokens, or deployment credentials as action inputs. When a permission policy denies the action after inputs have been resolved, those secrets land in persistent task logs. The exposure is scoped to templates where denied actions receive sensitive input values.

Root Cause

The root cause is unsanitized error message construction. The denied-action error path included the full action input payload in the exception string. Because scaffolder task logs capture thrown errors verbatim and are readable by task owners, any sensitive value present in iteration.input became observable to authenticated users meeting the task-read condition.

Attack Vector

An attacker needs an authenticated Backstage account with permission to create and read scaffolder tasks. The attacker triggers a template that invokes an action denied by the deployment's permission policy, with the denied action receiving sensitive inputs. The resulting NotAllowedError message, containing the serialized input, is written to the task log and retrieved through the standard scaffolder task API.

typescript
// Patch in plugins/scaffolder-backend/src/scaffolder/tasks/NunjucksWorkflowRunner.ts
if (!isActionInputAuthorized(decision, action.id, iteration.input)) {
  throw new NotAllowedError(
-    `Unauthorized action: ${actionId}. The action is not allowed. Input: ${JSON.stringify(
-      iteration.input,
-      null,
-      2,
-    )}`,
+    `Unauthorized action: ${action.id}. The action is not allowed.`,
  );
}
// Source: https://github.com/backstage/backstage/commit/3eb3dc59eb0da0deccd532f19eb460bb452c9efb

The fix removes the serialized iteration.input from the error message, preventing sensitive input values from reaching task logs when an action is denied.

Detection Methods for CVE-2026-106504

Indicators of Compromise

  • Scaffolder task log entries containing the string Unauthorized action: followed by a JSON Input: block
  • Task log retrievals from users who repeatedly execute templates known to invoke denied actions
  • Unexpected template executions by low-privilege users against templates referencing credential-bearing inputs

Detection Strategies

  • Query the scaffolder task database for historical log entries containing Unauthorized action combined with Input: to identify prior exposures.
  • Correlate scaffolder audit events with permission-policy denial decisions to flag templates that leaked inputs.
  • Review templates that pass secrets, tokens, or credentials as action inputs and cross-reference against denied-action events.

Monitoring Recommendations

  • Enable audit logging on the Backstage permission framework and alert on repeated denials from the same user.
  • Monitor the scaffolder task read API for anomalous volumes of log retrievals per user.
  • Rotate any secret that may have appeared in a scaffolder task log on an affected release.

How to Mitigate CVE-2026-106504

Immediate Actions Required

  • Upgrade @backstage/plugin-scaffolder-backend to version 4.1.0 or later across all Backstage instances.
  • Rotate any credentials, tokens, or secrets that may have been passed as scaffolder action inputs on vulnerable versions.
  • Audit existing scaffolder task logs for serialized input exposure and purge entries containing sensitive values.

Patch Information

The fix is delivered in @backstage/plugin-scaffolder-backend version 4.1.0 and in the Backstage release bundle v1.54.6. Details are published in GitHub Security Advisory GHSA-4xvq-3m68-h444 and the upstream commit.

Workarounds

  • Restrict scaffolder.task.read permission so that only trusted operators can read task logs until patching is complete.
  • Remove or substitute secret-bearing fields from template action inputs; source secrets at action execution time instead of passing them through template context.
  • Disable or remove templates that invoke actions denied by the current permission policy to eliminate the exposure path.
bash
# Upgrade the affected package to the fixed version
yarn up @backstage/plugin-scaffolder-backend@^4.1.0
yarn install
yarn tsc && yarn build:backend

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.