6.5medium
TechDocs mkdocs.yml path traversal
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.28% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-pgf8-28gg-vpr6
Description
Backstage is an open platform for building developer portals, and techdocs-common contains common functionalities for Backstage's TechDocs. In `@backstage/techdocs-common` versions prior to 0.6.3, a malicious actor could read sensitive files from the environment where TechDocs documentation is built and published by setting a particular path for `docs_dir` in `mkdocs.yml`. These files would then be available over the TechDocs backend API. This vulnerability is mitigated by the fact that an attacker would need access to modify the `mkdocs.yml` in the documentation source code, and would also need access to the TechDocs backend API. The vulnerability is patched in the `0.6.3` release of `@backstage/techdocs-common`.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| backstage backstage | < 0.6.3 | CVE List |
| @backstage/techdocs-common (npm) | before 0.6.3 | GitHub Advisory Database |
| linuxfoundation backstage/techdocs-common | before 0.6.3 | NVD |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.5low CVSS:2.0 | AV:N/AC:M/Au:S/C:P/I:N/A:N |
Classification
What each source says
CVE List
Backstage is an open platform for building developer portals, and techdocs-common contains common functionalities for Backstage's TechDocs. In `@backstage/techdocs-common` versions prior to 0.6.3, a malicious actor could read sensitive files from the environment where TechDocs documentation is built and published by setting a particular path for `docs_dir` in `mkdocs.yml`. These files would then be available over the TechDocs backend API. This vulnerability is mitigated by the fact that an attacker would need access to modify the `mkdocs.yml` in the documentation source code, and would also need access to the TechDocs backend API. The vulnerability is patched in the `0.6.3` release of `@backstage/techdocs-common`.
GitHub Advisory Database
Impact
A malicious actor could read sensitive files from the environment where TechDocs documentation is built and published by setting a particular path for docs_dir in mkdocs.yml. These files would then be available over the TechDocs backend API.
This vulnerability is mitigated by the fact that an attacker would need access to modify the mkdocs.yml in the documentation source code, and would also need access to the TechDocs backend API.
Patches
The vulnerability is patched in the 0.6.3 release of @backstage/techdocs-common.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Backstage repository
- Visit our chat, linked to in Backstage README
NVD (es)
Backstage es una plataforma abierta para construir portales para desarrolladores, y la función techdocs-common contiene funcionalidades comunes para los TechDocs de Backstage. En "@backstage/techdocs-common" versiones anteriores a 0.6.3, un actor malicioso podía leer archivos confidenciales del entorno donde se construye y publica la documentación de TechDocs ajustando una ruta particular para la función "docs_dir" en el archivo "mkdocs.yml". Estos archivos estarían entonces disponibles a través de la API del backend de TechDocs. Esta vulnerabilidad está mitigada por el hecho de que un atacante necesitaría acceso para modificar el archivo "mkdocs.yml" en el código fuente de la documentación, y también necesitaría acceso a la API del backend de TechDocs. La vulnerabilidad está parcheada en la versión "0.6.3" de "@backstage/techdocs-common"
References
| https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6 | third-party-advisory, web | |
| https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208 | patch, third-party-advisory, web | |
| https://github.com/backstage/backstage/releases/tag/release-2021-05-27 | release-notes, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-32662 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32662 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pgf8-28gg-vpr6 changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-32662 changed 2026-11-17 | Public domain |