{"api_version":"1","generated_at":"2026-04-10T00:13:43+00:00","cve":"CVE-2021-32662","urls":{"html":"https://cve.report/CVE-2021-32662","api":"https://cve.report/api/cve/CVE-2021-32662.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-32662","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-32662"},"summary":{"title":"CVE-2021-32662","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`.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2021-06-03 22:15:00","updated_at":"2021-06-21 14:21:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","name":"https://github.com/backstage/backstage/releases/tag/release-2021-05-27","refsource":"MISC","tags":[],"title":"Release release-2021-05-27 · backstage/backstage · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","name":"https://github.com/backstage/backstage/security/advisories/GHSA-pgf8-28gg-vpr6","refsource":"CONFIRM","tags":[],"title":"TechDocs mkdocs.yml path traversal · Advisory · backstage/backstage · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","name":"https://github.com/backstage/backstage/commit/8cefadca04cbf01d0394b0cb1983247e5f1d6208","refsource":"MISC","tags":[],"title":"Add validation to prevent docs_dir from being an absolute path · backstage/backstage@8cefadc · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32662","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32662","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"32662","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"backstage","cpe5":"backstage","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"32662","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"linuxfoundation","cpe5":"backstage","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-32662","qid":"982356","title":"Nodejs (npm) Security Update for @backstage/techdocs-common (GHSA-pgf8-28gg-vpr6)"}]},"source_records":{"cve_program":{"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"}},"nvd":{"publishedDate":"2021-06-03 22:15:00","lastModifiedDate":"2021-06-21 14:21:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:N/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:linuxfoundation:backstage:*:*:*:*:*:*:*:*","versionEndExcluding":"0.6.3","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"32662","Ordinal":"208050","Title":"CVE-2021-32662","CVE":"CVE-2021-32662","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"32662","Ordinal":"1","NoteData":"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`.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"32662","Ordinal":"2","NoteData":"2021-06-03","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"32662","Ordinal":"3","NoteData":"2021-06-03","Type":"Other","Title":"Modified"}]}}}