CVE-2021-32660: TechDocs content sanitization bypass
Vulnerability summary
CVE-2021-32660 is a high (CVSS 8.1) vulnerability in backstage. EPSS estimates a 1.27% chance of exploitation in the next 30 days, higher than 70.7% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 03-06-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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`.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
- OSV · NpmEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.27%
Chance of exploitation in the next 30 days
Percentile
71%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-77Improper Neutralization of Special Elements used in a CommandThe product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
- CWE-434Unrestricted Upload of File with Dangerous TypeThe product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
Affected systems
Known conditions: network-reachable, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
@backstage1 product
- techdocs-common< 0.6.4
Backstage1 product
- backstage< 0.6.4
Linuxfoundation1 product
- backstage\/techdocs-common< 0.6.4
3 vendors · 3 products
References
4 links- github.com/backstage/backstage/security/advisories/GHSA-pwhf-39xg-4rxwX Refsource CONFIRMWEBThird Party Advisory
- github.com/backstage/backstage/commit/aad98c544e59369901fe9e0a85f6357644dceb5cX Refsource MISCWEBPatchThird Party Advisory
- github.com/backstage/backstage/releases/tag/release-2021-06-03X Refsource MISCWEBPatchThird Party Advisory