@backstage/plugin-techdocs-node: Backstage has improper input validation in TechDocs Markdown extension configuration
What fixes it
- 1.15.4@backstage/plugin-techdocs-node, npmGitHub
npm install @backstage/plugin-techdocs-node@1.15.4
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Impact
An authenticated user who can register or modify documentation sources may cause a TechDocs build to access resources outside the intended documentation boundary. Depending on deployment configuration, this may expose sensitive backend-host data or internal network resources.
Patches
Patched in @backstage/plugin-techdocs-node version 1.15.4.
Adopters must also use pymdown-extensions version 10.21.3 or newer, normally through mkdocs-techdocs-core version 1.7.0 or newer. @backstage/plugin-techdocs-node does not control the Python dependencies used by the generator; with an older PyMdown release, snippets may remain vulnerable to file inclusion even after their configuration is sanitized.
Workarounds
- Generate TechDocs only from trusted repositories with reviewed MkDocs configuration.
- Use isolated build environments with restricted filesystem access and network egress.
- Prefer externally generated TechDocs with appropriately sandboxed CI.
Text from GitHub Advisory Database
Affected versions 6
- @backstage/plugin-techdocs-node, npm< 1.15.4GitHub
- backstageaffected: < 1.50.5CVE List
- backstageaffected: >= 1.51.0-next.0, < 1.54.6CVE List
- plugin-techdocs-nodeaffected: < 1.14.6CVE List
- plugin-techdocs-nodeaffected: >= 1.15.0, < 1.15.4CVE List
- @backstage/plugin-techdocs-node, npmfrom first release, fixed in 1.15.4OSV
References 6
- github.com/backstage/backstage/commit/017ace52d9b327ededc6704cf17799c875ae0f29Fixvia CVE List
- github.com/backstage/backstage/commit/2d9de4ca117a529de4b6ed7dfb7aa507ca7b3f91Fixvia CVE List
- github.com/backstage/backstage/releases/tag/v1.50.5Fixvia CVE List
- github.com/backstage/backstage/releases/tag/v1.54.6Fixvia CVE List
- github.com/backstage/backstage/security/advisories/GHSA-f7v3-xhm6-w245Advisoryvia CVE List
- github.com/advisories/GHSA-f7v3-xhm6-w245Advisoryvia GitHub