VDB
Sign up
HIGH7.7

GHSA-8w7q-29mw-gf5c

Backstage: Improper validation of MkDocs theme configuration in TechDocs

Quick fix

GHSA-8w7q-29mw-gf5c — @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 TechDocs is configured to build documentation locally or in a container, a user with write access to a registered repository can include configuration values in `mkdocs.yml` that cause arbitrary code execution during the documentation build process.

### Patches

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

### Workarounds

- Configure TechDocs with `techdocs.generator.runIn: 'docker'` instead of `'local'` to provide container isolation, though this does not fully mitigate the risk. - Restrict write access to repositories registered in the Backstage catalog to trusted users.

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