LiveActive security incident?Get immediate response
CVE Record

CVE-2021-32660: TechDocs content sanitization bypass

Backstage is an open platform for building developer portals, and techdocs-common contains common functionalities for Backstage's TechDocs. In versions of `@backstage/tehdocs-common` prior to 0.6.4, a malicious internal actor is able to upload documentation content with malicious scripts. These scripts would normally be sanitized by the TechDocs frontend, but by tricking a user to visit the content via the TechDocs API, the content sanitazion will be bypassed. If the TechDocs API is hosted on the same origin as the Backstage app or other backend plugins, this may give access to sensitive data. The ability to upload malicious content may be limited by internal code review processes, unless the chosen TechDocs deployment method is to use an object store and the actor has access to upload files directly to that store. The vulnerability is patched in the `0.6.4` release of `@backstage/techdocs-common`.

MediumCVSS 6.8Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Backstage TechDocs could serve malicious documentation scripts through the TechDocs API, bypassing frontend sanitization. The practical risk is highest where internal users can publish docs and the API shares an origin with the Backstage app or backend plugins, potentially exposing sensitive portal data after a user visits crafted content.

Executive priority

Treat as a medium-priority internal portal risk. Patch during the next normal security maintenance window, faster if TechDocs upload rights are broad or same-origin hosting exposes sensitive backend data.

Technical view

CVE-2021-32660 affects @backstage/techdocs-common before 0.6.4. A privileged internal actor could upload script-bearing TechDocs content. The normal TechDocs frontend sanitization could be bypassed when users access content through the TechDocs API. Vendor guidance says 0.6.4 patches the issue.

Likely exposure

Likely limited to Backstage deployments using affected TechDocs packages before 0.6.4, especially where docs can be uploaded directly to object storage or through weak review controls. Same-origin hosting with the Backstage app or backend plugins increases impact.

Exploitation context

The provided sources do not show active exploitation, and KEV is false. Exploitation requires high privileges to place malicious content and user interaction. Impact can still be serious in trusted internal developer portals because compromised browser context may reach sensitive same-origin resources.

Researcher notes

Key conditions are affected @backstage/techdocs-common version, ability to upload documentation content, user interaction, and same-origin API placement. Evidence is vendor-sourced; no cited material establishes public exploitation or a workaround beyond upgrading and tightening publishing controls.

Mitigation direction

  • Upgrade @backstage/techdocs-common to version 0.6.4 or later.
  • Review Backstage release notes and vendor advisory for deployment-specific guidance.
  • Restrict who can publish TechDocs content or write directly to backing object storage.
  • Host TechDocs API with origin separation where practical to reduce same-origin data exposure.
  • Keep documentation publishing behind code review and access controls.

Validation and detection

  • Inventory Backstage instances and confirm TechDocs package versions in dependency locks.
  • Check whether TechDocs API shares an origin with the Backstage app or backend plugins.
  • Review object storage permissions for direct documentation upload access.
  • Confirm documentation publishing workflows require trusted review before content is served.
  • Verify the deployed Backstage release includes the 2021-06-03 TechDocs fix.
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-77: Command execution behavior lookup

Command injection weaknesses can lead defenders to review execution techniques and command interpreter 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
cve · low confidence lookup

CVE-2021-32660 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.8 (3.1)
Known Exploited
No
Published

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

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.8CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H0.95.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

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

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

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.4Listed
Weakness

CWE details

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

CWE-77 · source CWE mapping

Improper Neutralization of Special Elements used in a Command ('Command Injection')

Improper Neutralization of Special Elements used in a Command ('Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.