Vulnerability · Published Jun 6, 2023 · Assigned by GitHub_M

CVE-2022-46165Cross-site Scripting (XSS) in Web GUI in syncthing

Medium 4.6

In plain English

A medium-severity cross-site scripting in syncthing from syncthing. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.6Medium
Exploit odds (30 days)0.8%top 43.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12syncthingno fix listedDEBIAN-CVE-2022-46165
Debian:13syncthing1.27.2~ds4-1DEBIAN-CVE-2022-46165
Debian:14syncthing1.27.2~ds4-1DEBIAN-CVE-2022-46165
Gogithub.com/syncthing/syncthing1.23.5GHSA-9rp6-23gf-4c3h
Ubuntu:25.10syncthingno fix listedUBUNTU-CVE-2022-46165
Ubuntu:26.10syncthingno fix listedUBUNTU-CVE-2022-46165

Affected products (as reported)

VendorProductVersions
syncthing syncthing < 1.23.5

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N

References