Advisory

GHSA-pvv8-8fx9-h673

Also known as: CVE-2021-41151

Summary

Path Traversal in @backstage/plugin-scaffolder-backend

Details

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:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-10-19 15:28 UTC
Modified
2026-07-08 06:52 UTC

Affected packages and fixes

@backstage/plugin-scaffolder-backend

npm · All systems

Affected

  • introduced 0.9.4, fixed 0.15.9 (semver)

Fixed versions

0.15.9

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences