Skip to content
OpenAdvisories
Medium · 4.6 CVE-2022-46165 BIT-syncthing-2022-46165EUVD-2023-1766GHSA-9rp6-23gf-4c3h

Cross-site Scripting (XSS) in Web GUI in syncthing

Published Jun 6, 2023 · Updated Feb 13, 2025 · Assigned by GitHub_M

Description

Syncthing is an open source, continuous file synchronization program. In versions prior to 1.23.5 a compromised instance with shared folders could sync malicious files which contain arbitrary HTML and JavaScript in the name. If the owner of another device looks over the shared folder settings and moves the mouse over the latest sync, a script could be executed to change settings for shared folders or add devices automatically. Additionally adding a new device with a malicious name could embed HTML or JavaScript inside parts of the page. As a result the webUI may be subject to a stored cross site scripting attack. This issue has been addressed in version 1.23.5. Users are advised to upgrade. Users unable to upgrade should avoid sharing folders with untrusted users.

Affected products

VendorProductAffectedFixed
syncthing syncthing < 1.23.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 syncthing 1.27.2~ds4-1 —
Debian 13 syncthing 1.27.2~ds4-1 —
Debian 12 syncthing No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 syncthing No fix yet —
Ubuntu 25.10 syncthing No fix yet —
Ubuntu 20.04 LTS syncthing No fix yet —
Ubuntu 18.04 LTS syncthing No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 26.04 LTS syncthing No fix yet —
Ubuntu Pro 24.04 LTS syncthing No fix yet —
Ubuntu Pro 22.04 LTS syncthing No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 syncthing 1.23.5-bp155.2.3.1 openSUSE-SU-2023:0126-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed syncthing 1.23.5-1.1 openSUSE-SU-2024:12984-1
openSUSE Leap 15.5 syncthing 1.23.5-bp155.2.3.1 openSUSE-SU-2023:0126-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/syncthing/syncthing < 1.23.5 1.23.5 GHSA-9rp6-23gf-4c3h

Advisories 2

References