CVE-2021-41151
mediumpriority · track · 20EPSS 0.013 · 71 %ileEUUSEPSS · scored 2026-10-27
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`.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- npm @backstage/plugin-scaffolder-backend0.9.4 → 0.15.9osvUSpkg:npm/%40backstage/plugin-scaffolder-backend
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-pvv8-8fx9-h673Path Traversal in @backstage/plugin-scaffolder-backend 2021-10-19ghsa · osvUS
### 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)
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006cnnvd
- https://github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-41151cnnvd
- https://github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006enisa_euvd
- https://github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673enisa_euvd
- https://github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006PatchThird Party Advisorynvd
- https://github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan