CVE-2021-41151 – @backstage/plugin-scaffolder-backend
Package
Manager: npm
Name: @backstage/plugin-scaffolder-backend
Vulnerable Version: >=0.9.4 <0.15.9
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.00454 pctl0.62918
Details
Path Traversal in @backstage/plugin-scaffolder-backend ### 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: * Open an issue in the [Backstage repository](https://github.com/backstage/backstage) * Visit our chat, linked to in [Backstage README](https://github.com/backstage/backstage)
Metadata
Created: 2021-10-19T15:28:03Z
Modified: 2021-10-25T20:07:48Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-pvv8-8fx9-h673/GHSA-pvv8-8fx9-h673.json
CWE IDs: ["CWE-22"]
Alternative ID: GHSA-pvv8-8fx9-h673
Finding: F063
Auto approve: 1