Mittel

XSS in `*Text` options of the Datepicker widget in jquery-ui

  • Veröffentlicht: 26.10.2021
  • Aktualisiert: 11.10.2026 11:23

Impact

Accepting the value of various *Text options of the Datepicker widget from untrusted sources may execute untrusted code. For example, initializing the datepicker in the following way:

js
$( "#datepicker" ).datepicker( {
	showButtonPanel: true,
	showOn: "both",
	closeText: "<script>doEvilThing( 'closeText XSS' )</script>",
	currentText: "<script>doEvilThing( 'currentText XSS' )</script>",
	prevText: "<script>doEvilThing( 'prevText XSS' )</script>",
	nextText: "<script>doEvilThing( 'nextText XSS' )</script>",
	buttonText: "<script>doEvilThing( 'buttonText XSS' )</script>",
	appendText: "<script>doEvilThing( 'appendText XSS' )</script>",
} );

will call doEvilThing with 6 different parameters coming from all *Text options.

Patches

The issue is fixed in jQuery UI 1.13.0. The values passed to various *Text options are now always treated as pure text, not HTML.

Workarounds

A workaround is to not accept the value of the *Text options from untrusted sources.

For more information

If you have any questions or comments about this advisory, search for a relevant issue in the jQuery UI repo. If you don't find an answer, open a new issue.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Java / Kotlin (Maven) org.webjars.npm:jquery-ui < 1.13.0 1.13.0
npm-Paket jquery-ui < 1.13.0 1.13.0
.NET (NuGet) jQuery.UI.Combined < 1.13.0 1.13.0

Verweise

CVSS-Wert 6.5/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
Schwäche (CWE)
CWE-79
Plattform
Java / Kotlin (Maven), npm, .NET (NuGet)
Paket
org.webjars.npm:jquery-ui, jquery-ui, jQuery.UI.Combined
Veröffentlicht
26.10.2021
Aktualisiert
11.10.2026 11:23

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-j7qv-pgf6-hvh4 - CC BY 4.0

Schwachstellenhistorie: org.webjars.npm:jquery-ui

Alle veröffentlichten Schwachstellen dieses Pakets (Java / Kotlin (Maven)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Einträge insgesamt
7
Erste → letzte
10.2017 07.2022
Ohne Fix
0
In Angriffen ausgenutzt
0

Verteilung nach Schweregrad

  • Mittel 7

Veröffentlichungen pro Jahr

  1. 2017: 3
  2. 2018: 0
  3. 2019: 0
  4. 2020: 0
  5. 2021: 3
  6. 2022: 1
  7. 2023: 0
  8. 2024: 0
  9. 2025: 0
  10. 2026: 0
  1. XSS in `*Text` options of the Datepicker widget in jquery-ui dieser Eintrag
    Mittel · 6.5 CVE-2021-41183 < 1.13.0 1.13.0
  2. Mittel · 6.5 CVE-2021-41184 < 1.13.0 1.13.0
  3. Mittel · 6.5 CVE-2021-41182 < 1.13.0 1.13.0
  4. Mittel · 6.1 CVE-2010-5312 >= 1.7.0, < 1.10.0 1.10.0
  5. Mittel CVE-2012-6662 < 1.10.0 1.10.0
  6. Mittel · 6.1 CVE-2016-7103 < 1.12.0 1.12.0

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.