SchwachstellendatenbankGHSA-9g7v-h3pr-4qm8

GHSA-9g7v-h3pr-4qm8: 
Python Schwachstellenanalyse und -minderung

Summary

ui.editor holds its value as HTML and renders it unchanged in every browser that shows the editor. The rich-text editor in the browser strips pasted markup down to plain text, but this is the only barrier: a client that sends messages to the server directly, bypassing the editor, can set the value to arbitrary HTML, including elements with JavaScript event handlers. The server accepted such a value and forwarded it to every other editor showing the same value. Unlike ui.html and ui.markdown, ui.editor had neither a sanitizing default nor a sanitize option.

Impact

Applications are affected if they show one user's editor content in another user's editor, for example a shared note, a message board or a document that several users edit, typically by binding the editor's value to app.storage.general, a shared object or a database record. Anyone who can open the page containing the editor can then run JavaScript in the browsers of the other users who view it: without authentication if the page is public, otherwise as any logged-in user. Users who already have the page open are affected immediately, without any interaction. The damage is bounded by what a script in the victim's session can do, such as reading the page, acting on the victim's behalf or changing what they see. Applications in which each user only sees their own editor content are not affected, because an attacker can only target their own browser.

Patches

Fixed in NiceGUI 3.19.0. ui.editor has a new sanitize parameter, similar to ui.html and ui.markdown. By default, every browser sanitizes the editor content it receives with DOMPurify before displaying it, and sanitize=False restores the previous behavior for trusted content. The value on the server is still what the client sent, so applications that store it or pass it on to other HTML-rendering elements should sanitize it on the server themselves, as described below. Upgrade to 3.19.0 or later.

Workarounds

If upgrading is not immediately possible, sanitize the editor content on the server before it is shared with other users, for example with a sanitizer like nh3 or html-sanitizer in the forward function of the binding or in the on_change handler that stores the value. Configure the sanitizer to keep the markup the editor produces itself, such as <div> line breaks and style attributes, and to remove scripts and event handler attributes. This remains advisable after upgrading for applications that pass the stored value on to other places.


Quelle: NVD

Verwandte Themen Python Schwachstellen:

CVE-ID

Schwere

Punktzahl

Technologieen

Bauteilname

CISA KEV-Exploit

Hat Lösung

Veröffentlichungsdatum

GHSA-9g7v-h3pr-4qm8MEDIUM6.1
  • Python logoPython
  • nicegui
NeinJaNov 02, 2026
GHSA-m47w-xwfc-82pfMEDIUM6.1
  • Python logoPython
  • nicegui
NeinJaNov 02, 2026
GHSA-75w7-4mx9-8qqcMEDIUM5.9
  • Python logoPython
  • nicegui
NeinJaNov 02, 2026
CVE-2026-119301MEDIUM5
  • Python logoPython
  • awswrangler
NeinJaNov 02, 2026
GHSA-7325-hqrm-gj35MEDIUMN/A
  • Python logoPython
  • cbor2
NeinNeinNov 02, 2026

Kostenlose Verwundbarkeitsbewertung

Benchmark für Ihre Cloud-Sicherheitslage

Bewerten Sie Ihre Cloudsicherheitspraktiken in 9 Sicherheitsbereichen, um Ihr Risikoniveau zu bewerten und Schwachstellen in Ihren Verteidigungen zu identifizieren.

Anforderungsbewertung

Zusätzliche Wiz-Ressourcen

Eine personalisierte Demo anfordern

Sind Sie bereit, Wiz in Aktion zu sehen?

"Die beste Benutzererfahrung, die ich je gesehen habe, bietet vollständige Transparenz für Cloud-Workloads."
David EstlickCISO
"„Wiz bietet eine zentrale Oberfläche, um zu sehen, was in unseren Cloud-Umgebungen vor sich geht.“ "
Adam FletcherSicherheitsbeauftragter
"„Wir wissen, dass, wenn Wiz etwas als kritisch identifiziert, es auch wirklich kritisch ist.“"
Greg PoniatowskiLeiter Bedrohungs- und Schwachstellenmanagement