VDB
Sign up
MEDIUM5.3

GHSA-cm77-ch27-6w6v

Backstage has potential file exposure through local TechDocs publisher

Quick fix

GHSA-cm77-ch27-6w6v — @backstage/plugin-techdocs-node: upgrade to the fixed version with the command below.

npm install @backstage/plugin-techdocs-node@1.15.4

Details

### Impact

When using the local TechDocs publisher (`techdocs.publisher.type: 'local'`), it was possible for the documentation serving endpoint to follow filesystem references outside the intended documentation tree, potentially exposing host files to authenticated users.

This is mitigated by the fact that exploration requires preconditions that do not arise through normal MkDocs operation. Cloud-based publishers (S3, GCS, Azure Blob Storage) are not affected.

### Patches

Patched in `@backstage/plugin-techdocs-node` version `1.15.4`

### Workarounds

If you cannot upgrade immediately, consider switching to an external store for published TechDocs content (e.g. `awsS3`, `googleGcs`, or `azureBlobStorage` publishers)

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/@backstage/plugin-techdocs-node
Introduced in: 0Fixed in: 1.15.4
Fixnpm install @backstage/plugin-techdocs-node@1.15.4

References