Advisory record · GHSA-v82v-c5x8-w282

NiceGUI's XSS vulnerability in ui.markdown() allows arbitrary JavaScript execution through unsanitized HTML content

CVSS 6.1 MediumEPSS 0.0028 · 20th percentile

Published by the GitHub Advisory Database at 5 Feb 2026, 17:41 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
niceguiPyPI<3.7.03.7.0
Identifiers
GHSA-v82v-c5x8-w282 · CVE-2026-25516 · PYSEC-2026-2231
Weakness (CWE)
CWE-79
Published
5 Feb 2026
Updated
13 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The NiceGUI package, versions before 3.7.0, is vulnerable to cross-site scripting through its ui.markdown() component, which passes raw HTML from markdown content into the page without sanitizing it. An attacker who can supply markdown that an application renders through ui.markdown() can run JavaScript in a victim's browser, which may expose session data or let them act as the user. Upgrade NiceGUI to version 3.7.0 or later. Until then, do not pass untrusted content to ui.markdown().

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.1 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0028, the 20th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:04 UTC First seen by agentprime
  2. 31 Oct 2026, 15:04 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.