{"id":"GHSA-7hv8-3fr9-j2hv","summary":"Cross site scripting Vulnerability in backstage Software Catalog","details":"### Impact\n\nThis 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.\n\n### Patches\n\nThis vulnerability has been patched in both the frontend and backend implementations. The default `Link` component from `@backstage/core-components` will now reject `javascript:` URLs, and there is a global override of `window.open` to do the same.\n\nIn addition the catalog model as well as the catalog backend now has additional validation built in that prevents `javascript:` URLs in known annotations.\n\n### Workarounds\n\nThe general practice of limiting access to modifying catalog content and requiring code reviews greatly helps mitigate this vulnerability.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in the [Backstage repository](https://github.com/backstage/backstage)\n* Visit our chat, linked to in the [Backstage README](https://github.com/backstage/backstage)\n","aliases":["CVE-2023-25571"],"modified":"2026-09-10T03:49:56.731928688Z","published":"2023-02-14T21:35:10Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-02-14T21:35:10Z","nvd_published_at":"2023-02-14T18:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/backstage/backstage/security/advisories/GHSA-7hv8-3fr9-j2hv"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25571"},{"type":"WEB","url":"https://github.com/backstage/backstage/commit/3d1371954512f7fa8bd0e2d357e00eada2c3e8a8"},{"type":"PACKAGE","url":"https://github.com/backstage/backstage"}],"affected":[{"package":{"name":"@backstage/core-components","ecosystem":"npm","purl":"pkg:npm/%40backstage/core-components"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-7hv8-3fr9-j2hv/GHSA-7hv8-3fr9-j2hv.json"}},{"package":{"name":"@backstage/catalog-model","ecosystem":"npm","purl":"pkg:npm/%40backstage/catalog-model"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-7hv8-3fr9-j2hv/GHSA-7hv8-3fr9-j2hv.json"}},{"package":{"name":"@backstage/plugin-catalog-backend","ecosystem":"npm","purl":"pkg:npm/%40backstage/plugin-catalog-backend"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.7.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/02/GHSA-7hv8-3fr9-j2hv/GHSA-7hv8-3fr9-j2hv.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N"}]}