{"id":"CVE-2021-32662","aliases":["CVE-2021-32662","GHSA-pgf8-28gg-vpr6"],"related":[],"kind":"vulnerability","state":"published","title":"TechDocs mkdocs.yml path traversal","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA 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.\n\nThis 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.\n\n### Patches\n\nThe vulnerability is patched in the `0.6.3` release of `@backstage/techdocs-common`.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in the [Backstage repository](https://github.com/backstage/backstage)\n* Visit our chat, linked to in [Backstage README](https://github.com/backstage/backstage)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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\"","source":"nvd"}],"published":"2021-06-03T22:00:12.000Z","modified":"2026-11-17T20:21:37.840Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:S/C:P/I:N/A:N","score":3.5,"rating":"LOW"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"< 0.6.3","status":"affected"}],"vendor":"backstage","product":"backstage","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.3"}],"ecosystem":"npm","package":"@backstage/techdocs-common","purl":"pkg:npm/%40backstage/techdocs-common","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.3"}],"vendor":"linuxfoundation","product":"backstage/techdocs-common","cpe":"cpe:2.3:a:linuxfoundation:backstage\\/techdocs-common:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","tags":["release-notes","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32662","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-32662","url":"https://www.cve.org/CVERecord?id=CVE-2021-32662","licence":"CVE Terms of Use","modified":"2024-08-03T23:25:31.046Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pgf8-28gg-vpr6","url":"https://github.com/advisories/GHSA-pgf8-28gg-vpr6","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:06.826Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-32662","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32662","licence":"Public domain","modified":"2026-11-17T20:21:37.840Z"}],"updatedAt":"2026-11-25T22:58:01.641Z","epss":{"score":0.0128,"percentile":0.70854,"date":"2026-12-01T12:00:22.000Z"}}