Skip to content
Heist/ feed
Back to feed
Medium

Open WebUI vulnerable to stored XSS via unescaped markdown token in MarkdownTokens.svelte leading to full account takeover and RCE via functions

Type: advisorySources: OSV

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.6.6, a vulnerability in the way certain html tags in chat messages are rendered allows attackers to inject JavaScript code into a chat transcript. The JavaScript code will be executed in the user's browser every time that chat transcript is opened, allowing attackers to retrieve the user's access token and gain full control over their account. Chat transcripts can be shared with other users in the same server, or with the whole open-webui community if "Enable Community Sharing" is enabled in the admin panel. If this exploit is used against an admin user, it is possible to achieve Remote Code Execution on the server where the open-webui backend is hosted. This can be done by creating a new function which contains malicious python code. This vulnerability also affects chat transcripts uploaded to `https://openwebui.com/c//`, allowing for wormable stored XSS in https[:]//openwebui[.]com. Version 0.6.6 contains a patch for the issue.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-46719
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 20:35 UTC · Revision 1

Source evidence

Open WebUI vulnerable to stored XSS via unescaped markdown token in MarkdownTokens.svelte leading to full account takeover and RCE via functions

core-osv · Original source

Published 5 May 2025, 18:50 UTC

Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.6.6, a vulnerability in the way certain html tags in chat messages are rendered allows attackers to inject JavaScript code into a chat transcript. The JavaScript code will be executed in the user's browser every time that chat transcript is opened, allowing attackers to retrieve the user's access token and gain full control over their account. Chat transcripts can be shared with other users in the same server, or with the whole open-webui community if "Enable Community Sharing" is enabled in the admin panel. If this exploit is used against an admin user, it is possible to achieve Remote Code Execution on the server where the open-webui backend is hosted. This can be done by creating a new function which contains malicious python code. This vulnerability also affects chat transcripts uploaded to `https://openwebui.com/c//`, allowing for wormable stored XSS in https[:]//openwebui[.]com. Version 0.6.6 contains a patch for the issue.

osv:CVE-2025-46719
Complete source record
{
  "id": "74c16d382ad8a04350ce7a0cd8605a736ff671c8661b14e8d210cca5c4b2780e",
  "url": "https://osv.dev/vulnerability/CVE-2025-46719",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Open WebUI vulnerable to stored XSS via unescaped markdown token in MarkdownTokens.svelte leading to full account takeover and RCE via functions",
    "summary": "Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to version 0.6.6, a vulnerability in the way certain html tags in chat messages are rendered allows attackers to inject JavaScript code into a chat transcript. The JavaScript code will be executed in the user's browser every time that chat transcript is opened, allowing attackers to retrieve the user's access token and gain full control over their account. Chat transcripts can be shared with other users in the same server, or with the whole open-webui community if \"Enable Community Sharing\" is enabled in the admin panel. If this exploit is used against an admin user, it is possible to achieve Remote Code Execution on the server where the open-webui backend is hosted. This can be done by creating a new function which contains malicious python code. This vulnerability also affects chat transcripts uploaded to `https://openwebui.com/c//`, allowing for wormable stored XSS in https[:]//openwebui[.]com. Version 0.6.6 contains a patch for the issue.",
    "evidence": "osv:CVE-2025-46719",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-46719",
      "aliases": [
        "CVE-2025-46719",
        "GHSA-9f4f-jv96-8766",
        "PYSEC-2026-2716"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/open-webui/open-webui",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "23b9354cf6575bfe82e67df0660128d5a92461fc"
                },
                {
                  "fixed": "6fd082d55ffaf6eb226efdeebc7155e3693d2d01"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:openwebui:open_webui:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.6.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6fd082d55ffaf6eb226efdeebc7155e3693d2d01"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.6.5",
            "v0.6.4",
            "v0.6.3",
            "v0.6.2",
            "v0.6.1",
            "v0.6.0",
            "v0.5.16",
            "v0.5.20",
            "v0.5.19",
            "v0.5.18",
            "v0.5.17",
            "v0.5.15",
            "v0.5.14",
            "v0.5.12",
            "v0.5.13",
            "v0.5.11",
            "v0.5.10",
            "v0.5.9",
            "v0.5.8",
            "v0.5.7",
            "v0.5.6",
            "v0.5.5",
            "v0.5.4",
            "v0.5.3",
            "v0.5.2",
            "v0.5.1",
            "v0.5.0",
            "v0.4.8",
            "v0.4.7",
            "v0.4.6",
            "v0.4.5",
            "v0.4.4",
            "v0.4.3",
            "v0.4.2",
            "v0.4.1",
            "v0.4.0",
            "v0.3.35",
            "v0.3.34",
            "v0.3.33",
            "v0.3.32",
            "v0.3.31",
            "v0.3.30",
            "v0.3.29",
            "v0.3.28",
            "v0.3.27",
            "v0.3.26",
            "v0.3.25",
            "v0.3.24",
            "v0.3.23",
            "v0.3.22",
            "v0.3.21",
            "v0.3.20",
            "v0.3.19",
            "v0.3.18",
            "v0.3.17",
            "v0.3.16",
            "v0.3.15",
            "v0.3.14",
            "v0.3.13",
            "v0.3.12",
            "v0.3.11",
            "v0.3.10",
            "v0.3.9",
            "v0.3.8",
            "v0.3.7",
            "v0.3.6",
            "v0.3.5",
            "v0.3.4",
            "v0.3.3",
            "v0.3.2",
            "v0.3.1",
            "v0.3.0",
            "v0.2.5",
            "v0.2.4",
            "v0.2.3",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.125",
            "v0.1.124",
            "v0.1.123",
            "v0.1.122",
            "v0.1.114",
            "v0.1.121",
            "v0.1.120",
            "v0.1.119",
            "v0.1.118",
            "v0.1.117",
            "v0.1.116",
            "v0.1.115",
            "v0.1.108",
            "v0.1.113",
            "v0.1.112",
            "v0.1.111",
            "v0.1.110",
            "v0.1.109",
            "v0.1.107",
            "v0.1.106",
            "v0.1.105",
            "v0.1.104",
            "v0.1.103",
            "v0.1.102"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46719.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.747896226Z",
      "provider": "osv",
      "references": [
        "https://github.com/open-webui/open-webui/blob/main/src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte#L269-L279",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46719.json",
        "https://github.com/open-webui/open-webui/security/advisories/GHSA-9f4f-jv96-8766",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-46719",
        "https://github.com/open-webui/open-webui/commit/6fd082d55ffaf6eb226efdeebc7155e3693d2d01"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-79"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46719.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-46719",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 489937,
  "published_at": "2025-05-05T18:50:56.928+00:00"
}