VDB
Sign up
HIGH8.5

GHSA-g8rx-f7m5-7794

Backstage has iImproper filesystem validation in Bitbucket pull-request scaffolder actions

Quick fix

GHSA-g8rx-f7m5-7794 — @backstage/plugin-scaffolder-backend-module-bitbucket-cloud: upgrade to the fixed version with the command below.

npm install @backstage/plugin-scaffolder-backend-module-bitbucket-cloud@0.3.10

Details

### Impact

An authenticated user who can execute an eligible template and influence an allowed Bitbucket repository could affect filesystem paths outside the expected working area. Depending on the backend deployment, this could compromise backend confidentiality, integrity, or availability.

### Patches

- `@backstage/plugin-scaffolder-backend-module-bitbucket-cloud` version `0.3.10` - `@backstage/plugin-scaffolder-backend-module-bitbucket-server` version `0.2.25`

### Workarounds

- Restrict execution of affected Scaffolder templates to trusted users. - Avoid templates that accept user-controlled target repositories for these actions.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@backstage/plugin-scaffolder-backend-module-bitbucket-cloud
Introduced in: 0Fixed in: 0.3.10
Fixnpm install @backstage/plugin-scaffolder-backend-module-bitbucket-cloud@0.3.10
npm/@backstage/plugin-scaffolder-backend-module-bitbucket-server
Introduced in: 0Fixed in: 0.2.25
Fixnpm install @backstage/plugin-scaffolder-backend-module-bitbucket-server@0.2.25

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:npm/%40backstage/plugin-scaffolder-backend-module-bitbucket-cloud"]}'