GHSA-w658-mh9p-ww8f: Path Traversal

Published Oct 28, 2026
·
Updated

Summary

@backstage/plugin-catalog-backend matches URL-type locations against catalog.rules location patterns using the raw URL string submitted by the user, while URL readers resolve that same string in canonical form when fetching the location's content. A URL can therefore be crafted so that it appears to belong to a trusted location scope during rule evaluation, but is fetched from a different scope.

Details

When a deployment restricts catalog kinds to trusted URL prefixes using catalog.rules location patterns, DefaultCatalogRulesEnforcer applies glob matching directly to the raw location.target string. The URL readers used for ingestion resolve the same target in canonical form, including normalizing percent-encoded dot segments. A registered location such as https://<host>/trusted/%2e%2e/attacker/repo/blob/main/catalog-info.yaml matches a https://<host>/trusted/ pattern as a raw string, but resolves to and is fetched from https://<host>/attacker/repo/... when its content is read.

An authenticated user with permission to register catalog locations (catalog.location.create) can use this to have an entity from an untrusted source admitted as if it originated from a trusted location scope.

Impact

The crossed boundary is the operator-configured catalog ingestion policy: entity content from outside the trusted location scope is ingested as if it were within it. Downstream consequences depend on deployment configuration, for example actions taken with integration credentials by processors or scaffolder when acting on the ingested entity. The assessment of this report found no basis for impact claims beyond the ingestion policy boundary itself.

Patches

This is fixed in @backstage/plugin-catalog-backend 3.9.2 (Backstage release 1.54.10) and 4.0.2 (Backstage release 1.56.1). Version 4.0.1 as published is not fixed.

Workarounds

No complete workaround is available for deployments that rely on URL location patterns to restrict catalog kinds. Restricting location registration permissions reduces exposure.

Affected Software

2 affected componentsFixes available
npm/@backstage/plugin-catalog-backend>=4.0.0<4.0.2
4.0.2
npm/@backstage/plugin-catalog-backend<3.9.2
3.9.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/@backstage/plugin-catalog-backend to a version that resolves this vulnerability.

    Fixed in 4.0.2
  2. Upgrade

    Upgrade npm/@backstage/plugin-catalog-backend to a version that resolves this vulnerability.

    Fixed in 3.9.2
  3. Upgrade

    Upgrade @backstage/plugin-catalog-backend to a version that resolves this vulnerability.

    Fixed in 3.9.2
  4. Upgrade

    Upgrade @backstage/plugin-catalog-backend to a version that resolves this vulnerability.

    Fixed in 4.0.2
  5. Compensating control

    Restrict permissions to register catalog locations, especially the catalog.location.create permission, to reduce exposure.

Event History

Oct 28, 2026
Advisory Published
via GitHub·10:42 PM
Data Sourced
via GitHub·10:42 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments that use catalog.rules location patterns to restrict catalog kinds to trusted URL prefixes are exposed when those rules are evaluated against user-supplied URL locations.

2

What access does an attacker need?

An attacker needs to be authenticated and have the catalog.location.create permission, which allows them to register catalog locations.

3

How can the trusted-location restriction be bypassed?

The attacker can submit a URL that raw-string matches a trusted prefix but contains percent-encoded dot segments. URL readers canonicalize those segments when fetching content, causing the fetch to resolve outside the trusted scope.

4

What is the resulting impact?

An entity from an untrusted source can be admitted to the catalog as though it originated from an allowed location.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203