CVE-2021-43776: Cross-Site Scripting vulnerability in @backstage/plugin-auth-backend

Summary

01/12/2021
Yes i
High
7.4

CVE-2021-43776: Cross-Site Scripting vulnerability in @backstage/plugin-auth-backend. Affects @backstage/plugin-auth-backend versions < 0.4.9. Fixed in 0.4.9. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The @backstage/plugin-auth-backend package is an npm package that provides authentication backend functionality for the Backstage framework. It is used to handle user authentication and authorization within Backstage applications. This package is vulnerable to a Cross-Site Scripting (XSS) attack.

Vulnerability Detail

The vulnerability allows a malicious actor to exploit a Cross-Site Scripting vulnerability in the @backstage/plugin-auth-backend package. By tricking a user into visiting a specially crafted URL, the attacker can execute arbitrary JavaScript code in the user's browser. This can lead to the exfiltration of access tokens or other sensitive information stored in the user's browser. Although the default Content Security Policy (CSP) helps mitigate this attack, some deployments may have disabled these policies, making them vulnerable.

How To Fix

Latest published version: 0.30.2 as of 22 Oct 2026

npm install @backstage/plugin-auth-backend@0.30.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.9

This is the first release that contains the fix.

npm install @backstage/plugin-auth-backend@0.4.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The @backstage/plugin-auth-backend package is vulnerable to a Cross-Site Scripting (XSS) attack. To mitigate this vulnerability, it is recommended to upgrade to version 0.4.9 of the package. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for @backstage/plugin-auth-backend →

Share this vulnerability

FAQ

This vulnerability allows an attacker to execute arbitrary JavaScript code in a user's browser, potentially leading to the exfiltration of sensitive information.

To mitigate the risk, it is recommended to upgrade to version 0.4.9 of the @backstage/plugin-auth-backend package.

There are no known workarounds for this vulnerability. It is recommended to upgrade to the patched version.

Yes, the default CSP helps mitigate this vulnerability. However, some deployments may have disabled these policies, making them vulnerable.

For more information, you can open an issue in the Backstage repository or visit the Backstage chat.

Related vulnerabilities

Recent vulnerabilities recorded for @backstage/plugin-auth-backend.

How To Fix

Latest published version: 0.30.2 as of 22 Oct 2026

npm install @backstage/plugin-auth-backend@0.30.2

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.4.9

This is the first release that contains the fix.

npm install @backstage/plugin-auth-backend@0.4.9

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback