ghsa-7hv8-3fr9-j2hv
Vulnerability from github
Impact
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.
Patches
This 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.
In addition the catalog model as well as the catalog backend now has additional validation built in that prevents javascript:
URLs in known annotations.
Workarounds
The general practice of limiting access to modifying catalog content and requiring code reviews greatly helps mitigate this vulnerability.
For more information
If you have any questions or comments about this advisory:
- Open an issue in the Backstage repository
- Visit our chat, linked to in the Backstage README
{ "affected": [ { "package": { "ecosystem": "npm", "name": "@backstage/core-components" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "0.12.4" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "npm", "name": "@backstage/catalog-model" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.2.0" } ], "type": "ECOSYSTEM" } ] }, { "package": { "ecosystem": "npm", "name": "@backstage/plugin-catalog-backend" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "1.7.2" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2023-25571" ], "database_specific": { "cwe_ids": [ "CWE-79" ], "github_reviewed": true, "github_reviewed_at": "2023-02-14T21:35:10Z", "nvd_published_at": "2023-02-14T18:15:00Z", "severity": "MODERATE" }, "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", "id": "GHSA-7hv8-3fr9-j2hv", "modified": "2023-02-14T21:35:10Z", "published": "2023-02-14T21:35:10Z", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N", "type": "CVSS_V3" } ], "summary": "Cross site scripting Vulnerability in backstage Software Catalog" }
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.