Oct 7, 2026·7 min read·27 visits
An authenticated user authorized to view at least one TechDocs site can craft a request with directory traversal sequences to bypass the Backstage permission framework and read private documentation from other entities.
An authorization bypass vulnerability in the Spotify Backstage TechDocs backend plugin allows authenticated attackers with access to at least one valid TechDocs site to read arbitrary static documentation from other entities. This occurs due to un-sanitized relative subpaths passing directly to external storage drivers.
Spotify Backstage is an open-source framework used to build centralized developer portals. The TechDocs plugin (@backstage/plugin-techdocs-backend) is responsible for serving technical documentation directly within the Backstage portal. In standard deployment scenarios, documentation is written in Markdown, generated as static assets (HTML, CSS, and images) using tools like MkDocs, and then hosted on external storage systems like Amazon S3, Google Cloud Storage, or Azure Blob Storage.
When the Backstage permission framework is enabled, access to specific entity documentation is regulated through access control policies. When an authenticated developer attempts to view a document, the application performs permission checks using the catalog entity details (namespace, kind, and name). This design prevents unauthorized developers from accessing proprietary designs, infrastructure schemas, or internal API structures.
A vulnerability in the routing component of @backstage/plugin-techdocs-backend breaks this isolation model. When configured with an external TechDocs builder and an external storage provider, the application fails to validate directory containment of requested subpaths. This exposes an attack surface where low-privileged authenticated users can view restricted files from unrelated entities, provided they have access to at least one valid TechDocs repository.
The core flaw resides in how Backstage routes requests for static TechDocs files. The backend application implements an Express route handler to serve these assets under /static/docs/:namespace/:kind/:name.
During request processing, the Backstage permission middleware extracts the parsed parameter values (such as namespace, kind, and name) to execute access authorization lookups. If the user is authorized to read the specified entity, the request is passed to the underlying storage publisher. However, the application uses the raw request path (req.path), which contains the subpath of the requested file, without sanitizing it for path traversal vectors.
An attacker can supply URL-encoded traversal sequences like %2e%2e within the subpath portion of the request. Since the route parameters still map to a valid, permitted entity, the authorization check succeeds. The downstream storage client receives the un-sanitized path containing traversal sequences, which are decoded and normalized during interaction with the external storage provider (e.g., S3 or GCS). This shifts the target file lookup outside of the authorized entity's directory into an unauthorized peer directory.
The official fix, introduced in commit bf6bbf7326ada7d96d7b2c4ebc4a71546106f311, addresses the root cause by validating the containment of requested subpaths before checking permissions or fetching files. It introduces the helper function isPathWithinEntity to check that the path does not escape the parent entity context.
Below is the security validation logic added in router.ts:
import path from 'node:path';
// Helper to evaluate if the request path stays within the entity boundary
const isPathWithinEntity = (requestPath: string): boolean => {
// Decode URL encoding first to catch encoded patterns like %2e%2e
const relativePath = path.posix.normalize(
decodeURI(requestPath).replace(/^\/+/, ''),
);
// Ensure the path does not resolve to a parent directory
return relativePath !== '..' && !relativePath.startsWith('../');
};This verification functions as follows:
decodeURI: Decodes URL-encoded sequences like %2e to . and %2f to /. This ensures the validation detects hidden traversal characters.path.posix.normalize: Resolves relative sequences such as . and ... For example, entity-a/../entity-b resolves to entity-b, which would then fail the containment check if normalized from the root... and does not start with ../.While this fix successfully mitigates standard traversal attacks, several implementation considerations exist:
path.posix.normalize. On Windows-based systems where Backstage is run locally with the local file publisher, native Windows path separators (\) are resolved by the OS. Since POSIX normalization does not handle backslashes, a path utilizing Windows separators (e.g., ..%5c..%5c) might bypass POSIX normalization but still cause traversal when accessed via the local Windows filesystem.isPathWithinEntity using decodeURI. If there is an upstream proxy (e.g., NGINX, Cloudflare, or AWS Application Load Balancer) that normalizes double URL-encoded sequences, or if downstream drivers perform extra decodes, double-encoded traversal sequences (%252e%252e) might bypass this single-stage filter.To execute this attack, an attacker must satisfy several prerequisites. First, they must possess valid credentials to authenticate to the Backstage developer portal. Second, the Backstage portal must have the permission framework enabled, utilize an external TechDocs builder, and fetch documentation from an external storage provider. Finally, the attacker must have read permissions for at least one catalog entity that hosts TechDocs.
In a typical scenario, the attacker identifies a permitted entity (entity-a) and a target restricted entity (entity-b). The attacker then constructs a GET request targeting the /api/techdocs/static/docs/ routing endpoint. By appending a URL-encoded traversal string (%2e%2e/entity-b/index.html) to the authorized endpoint, the attacker initiates the exploit.
An example HTTP request demonstrating this bypass:
GET /api/techdocs/static/docs/default/component/entity-a/%2e%2e/entity-b/index.html HTTP/1.1
Host: backstage.internal.net
Authorization: Bearer <valid_low_privilege_token>
User-Agent: Mozilla/5.0
Accept: text/html,application/xhtml+xmlWhen this request is processed:
:name to entity-a.default/component/entity-a.entity-a, the system permits the request.default/component/entity-b/index.html, returning unauthorized internal information to the attacker.The impact of this vulnerability is classified as Medium, with a CVSS 3.1 score of 6.5. This classification represents high confidentiality impact but zero direct impact on integrity or availability. The vulnerability does not allow write access, meaning attackers cannot alter documentation files, upload malicious assets, or achieve remote code execution on the underlying server.
Despite the Medium severity rating, the confidentiality risks inside corporate developer portals are significant. Technical documentation within developer portals frequently contains sensitive system architecture diagrams, internal endpoint definitions, database models, internal service dependencies, and potentially hardcoded non-production credentials or API keys.
Exposing internal system maps and service dependencies provides high-value intelligence to malicious actors. An attacker can use this information to map the internal attack surface of an organization, identifying high-value targets, security weaknesses, and authentication boundaries for secondary exploits.
The recommended path of remediation is upgrading the affected packages to their patched versions. Specifically, @backstage/plugin-techdocs-backend must be updated to version 2.2.4 or higher, and the core backstage framework must be updated to version 1.54.6 or higher.
To update these packages in your workspace, run the following commands:
# Upgrade the plugin in your backend workspace
yarn workspace backend upgrade @backstage/plugin-techdocs-backend@^2.2.4
# Alternatively, execute the core CLI upgrade process
yarn backstage-cli versions:bumpIn situations where upgrading cannot be executed immediately, administrators should implement temporary network-level and application-level mitigations. Web Application Firewalls (WAFs) should be configured with custom rules to inspect inbound URL paths targeting the /api/techdocs/static/docs/ endpoint. Any request containing encoded traversal sequences (%2e%2e, %2f, %5c, or native ..) should be blocked immediately.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
@backstage/plugin-techdocs-backend Spotify | < 2.2.4 | 2.2.4 |
backstage Spotify | < 1.54.6 | 1.54.6 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-22 |
| Attack Vector | Network |
| CVSS v3.1 Score | 6.5 |
| EPSS Score | 0.00287 |
| Impact | High Confidentiality |
| Exploit Status | poc |
| KEV Status | Not Listed |
The software uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the software does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.
A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.