From 2257d1395754c607b27c9c00809812eaff150814 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Fri, 20 Sep 2024 14:42:05 +0000 Subject: [PATCH] Publish Advisories GHSA-73rg-f94j-xvhx GHSA-9hf4-67fc-4vf4 --- .../GHSA-73rg-f94j-xvhx.json | 103 ++++++++++++++++++ .../GHSA-9hf4-67fc-4vf4.json | 97 +++++++++++++++++ 2 files changed, 200 insertions(+) create mode 100644 advisories/github-reviewed/2024/09/GHSA-73rg-f94j-xvhx/GHSA-73rg-f94j-xvhx.json create mode 100644 advisories/github-reviewed/2024/09/GHSA-9hf4-67fc-4vf4/GHSA-9hf4-67fc-4vf4.json diff --git a/advisories/github-reviewed/2024/09/GHSA-73rg-f94j-xvhx/GHSA-73rg-f94j-xvhx.json b/advisories/github-reviewed/2024/09/GHSA-73rg-f94j-xvhx/GHSA-73rg-f94j-xvhx.json new file mode 100644 index 00000000000..fb2f2a79a3e --- /dev/null +++ b/advisories/github-reviewed/2024/09/GHSA-73rg-f94j-xvhx/GHSA-73rg-f94j-xvhx.json @@ -0,0 +1,103 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-73rg-f94j-xvhx", + "modified": "2024-09-20T14:41:02Z", + "published": "2024-09-20T14:41:02Z", + "aliases": [ + "CVE-2024-47061" + ], + "summary": "Plate allows arbitrary DOM attributes in element.attributes and leaf.attributes", + "details": "### Impact\nOne longstanding feature of Plate is the ability to add custom DOM attributes to any element or leaf using the `attributes` property. These attributes are passed to the node component using the `nodeProps` prop.\n\nNote: The `attributes` prop that is typically rendered alongside `nodeProps` is unrelated.\n\n```ts\n[{\n type: 'p',\n attributes: { 'data-my-attribute': 'This will be rendered on the paragraph element' },\n children: [{\n bold: true,\n attributes: { 'data-my-attribute': 'This will be rendered on the bold leaf element' },\n text: 'Bold text',\n }],\n}]\n```\n\n```tsx\nconst ParagraphElement = ({ attributes, nodeProps, children }) => (\n \n {children}\n

\n);\n\nconst BoldLeaf = ({ attributes, nodeProps, children }) => (\n \n {children}\n \n);\n```\n\nIt has come to our attention that this feature can be used for malicious purposes, including cross-site scripting (XSS) and information exposure (specifically, users' IP addresses and whether or not they have opened a malicious document).\n\nNote that the risk of information exposure via `attributes` is only relevant to applications in which web requests to arbitrary URLs are not ordinarily allowed. Plate editors that allow users to embed images from arbitrary URLs, for example, already carry the risk of leaking users' IP addresses to third parties.\n\nAll Plate editors using an affected version of `@udecode/plate-core` are vulnerable to these information exposure attacks via the `style` attribute and other attributes that can cause web requests to be sent. \n\nIn addition, whether or not a Plate editor is vulnerable to cross-site scripting attacks using `attributes` depends on a number of factors. The most likely DOM attributes to be vulnerable are `href` and `src` on links and iframes respectively. Any component that spreads `{...nodeProps}` onto an `` or `