{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.19.12"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d295fc971a11cb13174405a50b08826d0de22e67"
            }
          ],
          "repo": "https://github.com/marmelab/react-admin",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.7.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "712c2f2ad48f90270567c49e662c0f4d03551268"
            },
            {
              "fixed": "ebe2e35320bb6882f6adba7831f4799809a11f28"
            }
          ],
          "repo": "https://github.com/marmelab/react-admin",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5jcr-82fh-339v"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25572.json"
  },
  "details": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn't sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand.\n",
  "id": "CVE-2023-25572",
  "modified": "2026-04-01T23:08:50.320421096Z",
  "published": "2023-02-13T20:49:54.340Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/marmelab/react-admin/releases/tag/v3.19.12"
    },
    {
      "type": "WEB",
      "url": "https://github.com/marmelab/react-admin/releases/tag/v4.7.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25572.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25572"
    },
    {
      "type": "FIX",
      "url": "https://github.com/marmelab/react-admin/pull/8644"
    },
    {
      "type": "FIX",
      "url": "https://github.com/marmelab/react-admin/pull/8645"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "React-Admin vulnerable to Cross-Site-Scripting attack on `\u003cRichTextField\u003e`"
}