VDB
Sign up
HIGH7.7

GHSA-4488-j8vj-vqqv

Backstage: Remote code execution via crafted markdown_extensions in TechDocs mkdocs.yml

Quick fix

GHSA-4488-j8vj-vqqv — @backstage/plugin-techdocs-node: upgrade to the fixed version with the command below.

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

Details

### Impact

An authenticated user who can register catalog entities can provide a crafted `mkdocs.yml` causing arbitrary OS command execution on the TechDocs build host when the docs are built.

### Patches

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

### Workarounds

If you cannot upgrade immediately:

- Switch to `techdocs.builder: external` to isolate TechDocs builds in a container. - Restrict who can register catalog entities with TechDocs annotations. - Audit existing catalog entities for suspicious `markdown_extensions` values in their `mkdocs.yml` files.

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