Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS00ODgyLWh4cHItaHJ2bc4AAzxb
@udecode/plate-link does not sanitize URLs to prevent use of the `javascript:` scheme
Impact
Affected versions of the link plugin and link UI component do not sanitize URLs to prevent use of the javascript:
scheme. As a result, links with JavaScript URLs can be inserted into the Plate editor through various means, including opening or pasting malicious content.
Patches
@udecode/plate-link
20.0.0 resolves this issue by introducing an allowedSchemes
option to the link plugin, defaulting to ['http', 'https', 'mailto', 'tel']
. URLs using a scheme that isn't in this list will not be rendered to the DOM.
Workarounds
If you are unable to update @udecode/plate-link
to version 20.0.0, we recommend overriding the LinkElement
and PlateFloatingLink
components with implementations that explicitly check the URL scheme before rendering any anchor elements.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00ODgyLWh4cHItaHJ2bc4AAzxb
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: 11 months ago
Updated: 6 months ago
CVSS Score: 8.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Identifiers: GHSA-4882-hxpr-hrvm, CVE-2023-34245
References:
- https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm
- https://nvd.nist.gov/vuln/detail/CVE-2023-34245
- https://github.com/udecode/plate/pull/2240
- https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7
- https://github.com/advisories/GHSA-4882-hxpr-hrvm
Blast Radius: 22.6
Affected Packages
npm:@udecode/plate-link
Dependent packages: 24Dependent repositories: 615
Downloads: 354,196 last month
Affected Version Ranges: < 20.0.0
Fixed in: 20.0.0
All affected versions: 1.0.0, 1.1.6, 2.0.0, 3.1.3, 3.2.0, 3.4.0, 3.5.0, 4.0.0, 4.3.0, 4.3.7, 4.4.0, 5.1.0, 5.3.0, 5.3.1, 5.3.5, 6.0.0, 6.1.0, 6.2.0, 6.3.0, 6.4.0, 6.4.1, 7.0.0, 7.0.1, 7.0.2, 8.0.0, 8.1.0, 8.3.0, 9.0.0, 9.2.0, 9.2.1, 9.3.0, 9.3.1, 10.0.0, 10.1.0, 10.1.1, 10.1.2, 10.2.1, 10.2.2, 10.4.0, 10.4.1, 10.4.2, 10.5.0, 10.5.2, 10.5.3, 11.0.0, 11.0.1, 11.0.2, 11.0.3, 11.0.4, 11.0.5, 11.0.6, 11.1.0, 11.2.0, 11.2.1, 13.1.0, 13.5.0, 13.6.0, 13.7.0, 13.8.0, 14.0.0, 14.0.2, 14.4.0, 14.4.1, 14.4.2, 15.0.0, 15.0.1, 15.0.3, 15.0.5, 16.0.0, 16.0.2, 16.1.0, 16.2.0, 16.2.1, 16.2.2, 16.3.0, 16.5.0, 16.8.0, 16.9.0, 16.9.1, 17.0.0, 17.0.1, 17.0.2, 17.0.3, 18.1.0, 18.1.1, 18.2.0, 18.6.0, 18.7.0, 18.8.1, 18.9.0, 18.9.1, 18.11.0, 18.13.0, 18.15.0, 19.0.0, 19.0.1, 19.0.3, 19.1.0, 19.1.1, 19.2.0, 19.4.2, 19.4.4, 19.5.0, 19.7.0
All unaffected versions: 20.0.0, 20.3.2, 20.4.0, 20.4.1, 20.7.0, 20.7.2, 21.0.0, 21.1.5, 21.2.0, 21.3.0, 21.3.2, 21.4.0, 21.4.1, 21.4.2, 21.5.0, 22.0.0, 22.0.1, 22.0.2, 23.3.0, 23.3.1, 23.4.0, 23.5.0, 23.6.0, 23.7.0, 23.7.4, 24.0.0, 24.0.1, 24.0.2, 24.2.0, 24.3.0, 24.3.1, 24.3.2, 24.3.5, 24.3.6, 24.4.0, 24.5.1, 24.5.2, 25.0.0, 25.0.1, 26.0.4, 27.0.0, 27.0.3, 28.0.0, 29.0.0, 29.0.1, 29.1.0, 30.0.0, 30.1.2, 30.4.5, 30.5.2, 30.5.3, 30.9.2, 30.9.4, 31.0.0, 32.0.0, 33.0.0, 33.0.2, 33.0.3