{"id":"CVE-2021-32662","state":"PUBLISHED","title":"TechDocs mkdocs.yml path traversal","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`.","publishedAt":"2021-06-03T22:00:12.000Z","updatedAt":"2024-08-03T23:25:31.046Z","severity":{"score":6.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["backstage backstage"],"affected":[{"vendor":"backstage","product":"backstage","versions":[{"version":"< 0.6.3","status":"affected"}]}],"references":["https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","https://github.com/backstage/backstage/releases/tag/release-2021-05-27"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T19:48:33.225Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/32xxx/CVE-2021-32662.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-32662","state":"PUBLISHED","datePublished":"2021-06-03T22:00:12.000Z","dateUpdated":"2024-08-03T23:25:31.046Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2021-05-12T00:00:00.000Z"},"containers":{"cna":{"title":"TechDocs mkdocs.yml path traversal","descriptions":[{"lang":"en","value":"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":[{"vendor":"backstage","product":"backstage","versions":[{"version":"< 0.6.3","status":"affected"}]}],"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"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-06-03T22:00:12.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-pgf8-28gg-vpr6","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-32662","STATE":"PUBLIC","TITLE":"TechDocs mkdocs.yml path traversal"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"backstage","version":{"version_data":[{"version_value":"< 0.6.3"}]}}]},"vendor_name":"backstage"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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`."}]},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}]},"references":{"reference_data":[{"name":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","refsource":"CONFIRM","url":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6"},{"name":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","refsource":"MISC","url":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208"},{"name":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","refsource":"MISC","url":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27"}]},"source":{"advisory":"GHSA-pgf8-28gg-vpr6","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T23:25:31.046Z"}}]}}}