CVE-2021-32660
JSON

6.8medium

TechDocs content sanitization bypass

Severity
6.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
1.27% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pwhf-39xg-4rxw

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

Affected

Product or packageVersionsReported by
backstage backstage< 0.6.4CVE List
@backstage/techdocs-common (npm)before 0.6.4GitHub Advisory Database
linuxfoundation @backstage/techdocs-commonbefore 0.6.4NVD

All scores

GitHub_M6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
NVD5.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:N

Classification

What each source says

CVE List

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

GitHub Advisory Database
Impact

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.

Patches

The vulnerability is patched in the 0.6.4 release of @backstage/techdocs-common.

For more information

If you have any questions or comments about this advisory:

NVD (es)

Backstage es una plataforma abierta para construir portales para desarrolladores, y techdocs-common contiene funcionalidades comunes para los TechDocs de Backstage. En las versiones de "@backstage/tehdocs-common" anteriores a versión 0.6.4, un actor interno malicioso es capaz de subir contenido de documentación con scripts maliciosos. Estos scripts serían normalmente saneados por el frontend de TechDocs, pero al engañar a un usuario a visitar el contenido por medio de la API de TechDocs, el saneamiento del contenido será omitido. Si la API de TechDocs está alojada en el mismo origen que la aplicación Backstage u otros plugins del backend, esto puede dar acceso a datos confidenciales. La capacidad de subir contenido malicioso puede estar limitada por los procesos internos de revisión de código, a menos que el método de despliegue de TechDocs elegido sea usar un almacén de objetos y el actor tenga acceso a subir archivos directamente a ese almacén. La vulnerabilidad está parcheada en la versión "0.6.4" de "@backstage/techdocs-common"

References

Sources

SourceRecordLicence
CVE ListCVE-2021-32660 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-pwhf-39xg-4rxw changed 2026-07-08CC-BY-4.0
NVDCVE-2021-32660 changed 2026-06-17Public domain