# CVE-2021-41151: Path Traversal in @backstage/plugin-scaffolder-backend

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.31%, higher than 71% of CVEs (2026-12-01)
- Published: 2021-10-18T20:30:10.000Z
- Modified: 2026-07-08T06:52:57.175Z
- Also known as: GHSA-pvv8-8fx9-h673
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- backstage backstage: >=0.9.4, < 0.15.9
- @backstage/plugin-scaffolder-backend (npm): from 0.9.4 before 0.15.9
- linuxfoundation backstage: from 0.9.4 before 0.15.9

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673> (third-party-advisory, web)
- <https://github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41151> (advisory)
- <https://github.com/backstage/backstage> (package)
- <https://github.com/backstage/backstage/releases/tag/release-2021-10-16> (web)

## Sources

- CVE List: [CVE-2021-41151](https://www.cve.org/CVERecord?id=CVE-2021-41151), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-pvv8-8fx9-h673](https://github.com/advisories/GHSA-pvv8-8fx9-h673), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41151](https://nvd.nist.gov/vuln/detail/CVE-2021-41151), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41151 · Whole record: https://cve.day/CVE-2021-41151.json · Rebuilt by cve.day 2026-11-25T22:58:04.538Z
