Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @backstage/plugin-scaffolder-backend
  4. ›
  5. CVE-2021-41151

CVE-2021-41151: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

October 19, 2021 (updated October 25, 2021)

Backstage is an open platform for building developer portals. 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.

References

  • github.com/advisories/GHSA-pvv8-8fx9-h673
  • github.com/backstage/backstage/commit/6968962c920508eae19a4c1c200fa2c8980a4006
  • github.com/backstage/backstage/releases/tag/release-2021-10-16
  • github.com/backstage/backstage/security/advisories/GHSA-pvv8-8fx9-h673
  • nvd.nist.gov/vuln/detail/CVE-2021-41151

Code Behaviors & Features

Detect and mitigate CVE-2021-41151 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.9.4 before 0.15.9

Fixed versions

  • 0.15.9

Solution

Upgrade to version 0.15.9 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/@backstage/plugin-scaffolder-backend/CVE-2021-41151.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.