VDB
Sign up
HIGH8.5

GHSA-xvgh-hmx8-9xxf

Backstage: Improper task state validation in Scaffolder backend

Quick fix

GHSA-xvgh-hmx8-9xxf — @backstage/plugin-scaffolder-backend: upgrade to the fixed version with the command below.

npm install @backstage/plugin-scaffolder-backend@4.1.0

Details

### Impact

An authenticated user with permission to create and access Scaffolder tasks may, under specific timing and deployment conditions, affect files accessible to the Backstage backend. If backend application files are writable, the confidentiality, integrity, and availability of the backend may be compromised.

### Patches

Patched in `@backstage/plugin-scaffolder-backend` version `4.1.0`

### Workarounds

- Restrict Scaffolder task creation and task-read permissions to trusted users through the permission policy. - Limit who can register or modify templates and which Scaffolder actions may execute. - Run backend application files read-only outside a dedicated, least-privilege Scaffolder working directory.

### References

- [Authorizing Scaffolder tasks, parameters, steps, and actions](https://backstage.io/docs/features/software-templates/authorizing-scaffolder-template-details/)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@backstage/plugin-scaffolder-backend
Introduced in: 0Fixed in: 4.1.0
Fixnpm install @backstage/plugin-scaffolder-backend@4.1.0

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"]}'