{"id":"CVE-2021-32660","published":"2021-06-03T17:05:11Z","modified":"2024-08-03T23:25:31Z","title":"TechDocs content sanitization bypass","vendor":"backstage","product":"backstage","tier":"tail","description":{"text":"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`.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01269,"percentile":0.7051,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://github.com/backstage/backstage/security/advisories/GHSA-pwhf-39xg-4rxw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/backstage/backstage/commit/aad98c544e59369901fe9e0a85f6357644dceb5c","tags":["x_refsource_MISC"]},{"url":"https://github.com/backstage/backstage/releases/tag/release-2021-06-03","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":14.1},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"backstage","affectedVersions":[{"vendor":"backstage","product":"backstage","versions":["< 0.6.4"]}],"affected":[{"ecosystem":"npm","package":"@backstage/techdocs-common","vulnerableRanges":["<0.6.4"],"patched":["0.6.4"],"from":["GHSA-pwhf-39xg-4rxw"],"provenance":"source"}],"summary":{"text":"The TechDocs component of Backstage, specifically the @backstage/techdocs-common package before version 0.6.4, fails to properly sanitize uploaded documentation content, allowing malicious scripts to persist in it. An attacker with high privileges (a malicious internal actor able to upload documentation content, with user interaction required) can trick a user into visiting that content through the TechDocs API, bypassing frontend sanitization; if the API shares an origin with the Backstage app or other backend plugins, this may expose sensitive data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:09Z"},"euvd":{"id":"EUVD-2021-1373","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-32662","published":"2021-06-03","fixed":"0.6.3","kev":false,"link":{"from":"CVE-2021-32662","to":"CVE-2021-32660","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@backstage/techdocs-common","fromFixed":"0.6.3","toFixed":"0.6.4","daysApart":0},{"kind":"similar","provenance":"machine","score":0.53,"basis":"same product + description similarity"}]}},{"cve":"CVE-2021-32660","published":"2021-06-03","fixed":"0.6.4","kev":false}],"package":"npm:@backstage/techdocs-common"}}