GSD-2023-34245
Vulnerability from gsd - Updated: 2023-12-13 01:20Details
@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate & React. 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. `@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. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2023-34245",
"id": "GSD-2023-34245"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2023-34245"
],
"details": "@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate \u0026 React. 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. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `[\u0027http\u0027, \u0027https\u0027, \u0027mailto\u0027, \u0027tel\u0027]`. URLs using a scheme that isn\u0027t in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.",
"id": "GSD-2023-34245",
"modified": "2023-12-13T01:20:30.700467Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2023-34245",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "plate",
"version": {
"version_data": [
{
"version_affected": "=",
"version_value": "\u003c 20.0.0"
}
]
}
}
]
},
"vendor_name": "udecode"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate \u0026 React. 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. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `[\u0027http\u0027, \u0027https\u0027, \u0027mailto\u0027, \u0027tel\u0027]`. URLs using a scheme that isn\u0027t in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements."
}
]
},
"impact": {
"cvss": [
{
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
"version": "3.1"
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"cweId": "CWE-79",
"lang": "eng",
"value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm",
"refsource": "MISC",
"url": "https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm"
},
{
"name": "https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7",
"refsource": "MISC",
"url": "https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7"
}
]
},
"source": {
"advisory": "GHSA-4882-hxpr-hrvm",
"discovery": "UNKNOWN"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c20.0.0",
"affected_versions": "All versions before 20.0.0",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2023-06-21",
"description": "@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate \u0026 React. 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. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `[\u0027http\u0027, \u0027https\u0027, \u0027mailto\u0027, \u0027tel\u0027]`. URLs using a scheme that isn\u0027t in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements.",
"fixed_versions": [
"20.0.0"
],
"identifier": "CVE-2023-34245",
"identifiers": [
"CVE-2023-34245",
"GHSA-4882-hxpr-hrvm"
],
"not_impacted": "All versions starting from 20.0.0",
"package_slug": "npm/@udecode/plate-link",
"pubdate": "2023-06-09",
"solution": "Upgrade to version 20.0.0 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2023-34245",
"https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7",
"https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm"
],
"uuid": "3a962cc2-db75-495c-b565-56c6e7d352e0"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:udecode:plate:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "20.0.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2023-34245"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "@udecode/plate-link is the link handler for the udecode/plate rich-text editor plugin system for Slate \u0026 React. 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. `@udecode/plate-link` 20.0.0 resolves this issue by introducing an `allowedSchemes` option to the link plugin, defaulting to `[\u0027http\u0027, \u0027https\u0027, \u0027mailto\u0027, \u0027tel\u0027]`. URLs using a scheme that isn\u0027t in this list will not be rendered to the DOM. Users are advised to upgrade. Users unable to upgrade are advised to override the `LinkElement` and `PlateFloatingLink` components with implementations that explicitly check the URL scheme before rendering any anchor elements."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7",
"refsource": "MISC",
"tags": [
"Patch"
],
"url": "https://github.com/udecode/plate/commit/93dd5712854660874900ae12e4d8e6ff28089eb7"
},
{
"name": "https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm",
"refsource": "MISC",
"tags": [
"Vendor Advisory"
],
"url": "https://github.com/udecode/plate/security/advisories/GHSA-4882-hxpr-hrvm"
}
]
}
},
"impact": {
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 6.1,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "NONE",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.8,
"impactScore": 2.7
}
},
"lastModifiedDate": "2023-06-21T18:37Z",
"publishedDate": "2023-06-09T18:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…