{"id":"CVE-2021-32662","published":"2021-06-03T22:00:12Z","modified":"2024-08-03T23:25:31Z","title":"TechDocs mkdocs.yml path traversal","vendor":"backstage","product":"backstage","tier":"tail","description":{"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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0128,"percentile":0.70736,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","tags":["x_refsource_MISC"]},{"url":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","tags":["x_refsource_MISC"]}],"priority":{"score":18.7,"factors":[{"name":"EPSS percentile","points":14.15},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":["< 0.6.3"]}],"affected":[{"ecosystem":"npm","package":"@backstage/techdocs-common","vulnerableRanges":["<0.6.3"],"patched":["0.6.3"],"from":["GHSA-pgf8-28gg-vpr6"],"provenance":"source"}],"summary":{"text":"The Backstage TechDocs component (@backstage/techdocs-common, in Backstage) contains a path traversal flaw: a malicious docs_dir path set in mkdocs.yml is not restricted to the intended directory. An attacker who can modify the mkdocs.yml in the documentation source and who has access to the TechDocs backend API can read sensitive files from the environment where documentation is built and published.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:40Z"},"euvd":{"id":"EUVD-2021-1371","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32662","published":"2021-06-03","fixed":"0.6.3","kev":false},{"cve":"CVE-2021-32660","published":"2021-06-03","fixed":"0.6.4","kev":false,"link":{"from":"CVE-2021-32662","to":"CVE-2021-32660","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@backstage/techdocs-common","fromFixed":"0.6.3","toFixed":"0.6.4","daysApart":0},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same product + description similarity"}]}}],"package":"npm:@backstage/techdocs-common"}}