CVE-2021-41151
JSON

6.8medium

Path Traversal in @backstage/plugin-scaffolder-backend

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.31% (higher than 71% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pvv8-8fx9-h673

Description

Backstage is an open platform for building developer portals. In affected versions A malicious actor could read sensitive files from the environment where Scaffolder Tasks are run. The attack is executed by crafting a custom Scaffolder template with a `github:publish:pull-request` action and a particular source path. When the template is executed the sensitive files would be included in the published pull request. This vulnerability is mitigated by the fact that an attacker would need access to create and register templates in the Backstage catalog, and that the attack is very visible given that the exfiltration happens via a pull request. The vulnerability is patched in the `0.15.9` release of `@backstage/plugin-scaffolder-backend`.

Affected

Product or packageVersionsReported by
backstage backstage>=0.9.4, < 0.15.9CVE List
@backstage/plugin-scaffolder-backend (npm)from 0.9.4 before 0.15.9GitHub Advisory Database
linuxfoundation backstagefrom 0.9.4 before 0.15.9NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
NVD4.9medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
NVD4.0medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:N/A:N

Classification

What each source says

CVE List

Backstage is an open platform for building developer portals. In affected versions A malicious actor could read sensitive files from the environment where Scaffolder Tasks are run. The attack is executed by crafting a custom Scaffolder template with a `github:publish:pull-request` action and a particular source path. When the template is executed the sensitive files would be included in the published pull request. This vulnerability is mitigated by the fact that an attacker would need access to create and register templates in the Backstage catalog, and that the attack is very visible given that the exfiltration happens via a pull request. The vulnerability is patched in the `0.15.9` release of `@backstage/plugin-scaffolder-backend`.

GitHub Advisory Database
Impact

A malicious actor could read sensitive files from the environment where Scaffolder tasks are run. The attack is executed by crafting a custom Scaffolder template with a publish:github:pull-request action using a particular source path. When the template is executed the sensitive files would be included in the published pull request.

This vulnerability is mitigated by the fact that an attacker would need access to create and register templates in the Backstage catalog, and that the attack is very visible given that the exfiltration happens via a pull request.

Patches

The vulnerability is patched in the 0.15.9 release of @backstage/plugin-scaffolder-backend.

For more information

If you have any questions or comments about this advisory:

NVD (es)

Backstage es una plataforma abierta para la construcción de portales para desarrolladores. En las versiones afectadas, un actor malicioso podría leer archivos confidenciales del entorno donde se ejecutan las Tareas de Scaffolder. El ataque es ejecutado al diseñar una plantilla personalizada de Scaffolder con una acción "github:publish:pull-request" y una ruta de origen determinada. Cuando la plantilla es ejecutada, los archivos confidenciales se incluyen en la petición de extracción publicada. Esta vulnerabilidad está mitigada por el hecho de que un atacante necesitaría acceso para crear y registrar plantillas en el catálogo de Backstage, y que el ataque es muy visible dado que la exfiltración ocurre por medio de una petición pull. La vulnerabilidad está parcheada en la versión "0.15.9" de "@backstage/plugin-scaffolder-backend"

References

Sources

SourceRecordLicence
CVE ListCVE-2021-41151 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-pvv8-8fx9-h673 changed 2026-07-08CC-BY-4.0
NVDCVE-2021-41151 changed 2026-06-17Public domain