# CVE-2023-25571: Backstage has XSS Vulnerability in Software Catalog

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.53% (percentile 38, 2026-11-26)
- **CWE:** CWE-84, CWE-79
- **Aliases:** GHSA-7hv8-3fr9-j2hv
- **Published:** 2023-02-14T17:00:19.154Z
- **Modified:** 2026-09-10T03:49:56.731Z

## Who should check

- Projects that depend on npm package @backstage/core-components (\< 0.12.4)
- Projects that depend on npm package @backstage/catalog-model (\< 1.2.0)
- Projects that depend on npm package @backstage/plugin-catalog-backend (\< 1.7.2)
- Anyone running backstage \< 1.2.0; \< 0.12.4; \< 1.7.2

## Description

Backstage is an open platform for building developer portals. \`@backstage/catalog-model\` prior to version 1.2.0, \`@backstage/core-components\` prior to 0.12.4, and \`@backstage/plugin-catalog-backend\` prior to 1.7.2 are affected by a cross-site scripting vulnerability. This vulnerability allows a malicious actor with access to add or modify content in an instance of the Backstage software catalog to inject script URLs in the entities stored in the catalog. If users of the catalog then click on said URLs, that can lead to an XSS attack.

This vulnerability has been patched in both the frontend and backend implementations. The default \`Link\` component from \`@backstage/core-components\` version 1.2.0 and greater will now reject \`javascript:\` URLs, and there is a global override of \`window.open\` to do the same. In addition, the catalog model v0.12.4 and greater as well as the catalog backend v1.7.2 and greater now has additional validation built in that prevents \`javascript:\` URLs in known annotations. As a workaround, the general practice of limiting access to modifying catalog content and requiring code reviews greatly help mitigate this vulnerability.

## Affected and fixed versions

- npm `@backstage/core-components`: affected \< 0.12.4; fixed 0.12.4 (osv)
- npm `@backstage/catalog-model`: affected \< 1.2.0; fixed 1.2.0 (osv)
- npm `@backstage/plugin-catalog-backend`: affected \< 1.7.2; fixed 1.7.2 (osv)
- backstage: \< 1.2.0; \< 0.12.4; \< 1.7.2 (cvelist)

## Mitigation

- Upgrade @backstage/core-components to 0.12.4 or later.
- Upgrade @backstage/catalog-model to 1.2.0 or later.
- Upgrade @backstage/plugin-catalog-backend to 1.7.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-25571. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-25571.md
Affected: @backstage/core-components < 0.12.4; @backstage/catalog-model < 1.2.0; @backstage/plugin-catalog-backend < 1.7.2
Fixed in: 0.12.4, 1.2.0, 1.7.2

Steps:
1. Search this machine and project for @backstage/core-components (npm), @backstage/catalog-model (npm), @backstage/plugin-catalog-backend (npm), backstage: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-25571 being exploited?

There is no confirmed exploitation: CVE-2023-25571 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-25571?

Medium: CVSS 6.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2023-25571?

@backstage/core-components \< 0.12.4; @backstage/catalog-model \< 1.2.0; @backstage/plugin-catalog-backend \< 1.7.2.

### Is there a fix for CVE-2023-25571?

Yes. Fixed in 0.12.4, 1.2.0, 1.7.2. Upgrade @backstage/core-components to 0.12.4 or later. Upgrade @backstage/catalog-model to 1.2.0 or later. Upgrade @backstage/plugin-catalog-backend to 1.7.2 or later.

### How do I check if I'm affected by CVE-2023-25571?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/backstage/backstage/security/advisories/GHSA-7hv8-3fr9-j2hv>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-25571>
- patch: <https://github.com/backstage/backstage/commit/3d1371954512f7fa8bd0e2d357e00eada2c3e8a8>
- other: <https://github.com/backstage/backstage>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-25571>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7hv8-3fr9-j2hv> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2023-25571> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-25571>
