# CVE-2021-32660: TechDocs content sanitization bypass

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-06-03T17:05:11.000Z
- Modified: 2026-07-08T06:52:57.000Z
- Also known as: GHSA-pwhf-39xg-4rxw
- Weaknesses: CWE-77, CWE-434
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- backstage backstage: < 0.6.4
- @backstage/techdocs-common (npm): before 0.6.4
- linuxfoundation @backstage/techdocs-common: before 0.6.4

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/backstage/backstage/security/advisories/GHSA-pwhf-39xg-4rxw> (third-party-advisory, web)
- <https://github.com/backstage/backstage/commit/aad98c544e59369901fe9e0a85f6357644dceb5c> (patch, third-party-advisory, web)
- <https://github.com/backstage/backstage/releases/tag/release-2021-06-03> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32660> (advisory)

## Sources

- CVE List: [CVE-2021-32660](https://www.cve.org/CVERecord?id=CVE-2021-32660), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-pwhf-39xg-4rxw](https://github.com/advisories/GHSA-pwhf-39xg-4rxw), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-32660](https://nvd.nist.gov/vuln/detail/CVE-2021-32660), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32660 · Whole record: https://cve.day/CVE-2021-32660.json · Rebuilt by cve.day 2026-11-25T22:58:01.638Z
