LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32662: TechDocs mkdocs.yml path traversal

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`.

MediumCVSS 6.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Backstage TechDocs could expose sensitive files from the documentation build environment if an attacker could alter mkdocs.yml. The issue is not described as remotely exploitable by the public alone; it requires source modification rights and TechDocs backend API access.

Executive priority

Treat as a moderate confidentiality risk. Prioritize remediation where Backstage TechDocs handles internal documentation, build environments contain secrets, or many users can contribute documentation changes.

Technical view

CVE-2021-32662 is a CWE-22 path traversal in @backstage/techdocs-common before 0.6.3. A malicious docs_dir value in mkdocs.yml could make files outside the documentation directory available through the TechDocs backend API. CVSS is 6.5 with high confidentiality impact.

Likely exposure

Exposure is most likely in Backstage deployments using TechDocs with @backstage/techdocs-common versions before 0.6.3, especially where contributors can edit documentation source and reach the TechDocs backend API.

Exploitation context

The source bundle does not show KEV listing or active exploitation evidence. Practical abuse requires access to modify mkdocs.yml in documentation source code and access to the TechDocs backend API.

Researcher notes

The advisory describes a constrained path traversal requiring repository write access and backend API access. The commit and release reference the 0.6.3 fix, but the bundle does not provide evidence of public exploitation.

Mitigation direction

  • Upgrade @backstage/techdocs-common to version 0.6.3 or later.
  • Restrict who can modify mkdocs.yml and documentation source repositories.
  • Limit TechDocs backend API access to trusted users and services.
  • Rebuild and republish TechDocs after upgrading the affected package.
  • Review vendor advisory and release notes for deployment-specific guidance.

Validation and detection

  • Inventory Backstage deployments using TechDocs.
  • Check package lockfiles for @backstage/techdocs-common below 0.6.3.
  • Review mkdocs.yml changes for unexpected docs_dir values.
  • Confirm TechDocs backend API is not broadly accessible.
  • Inspect published TechDocs artifacts for unintended sensitive file exposure.
Prepared
Confidence
high
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-32662 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
4Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.5CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N2.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

6.5Medium
CVSS 3.1 vector shape for CVE-2021-32662Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
backstagebackstage< 0.6.3Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.