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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | syncthing | no fix listed | DEBIAN-CVE-2022-46165 |
| Debian:13 | syncthing | 1.27.2~ds4-1 | DEBIAN-CVE-2022-46165 |
| Debian:14 | syncthing | 1.27.2~ds4-1 | DEBIAN-CVE-2022-46165 |
| Go | github.com/syncthing/syncthing | 1.23.5 | GHSA-9rp6-23gf-4c3h |
| Ubuntu:25.10 | syncthing | no fix listed | UBUNTU-CVE-2022-46165 |
| Ubuntu:26.10 | syncthing | no fix listed | UBUNTU-CVE-2022-46165 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/syncthing/syncthing/security/advisories/GHSA-9rp6-23gf-4c3h x_refsource_CONFIRM
- https://github.com/syncthing/syncthing/commit/73c52eafb6566435dffd979c3c49562b6d5a4238 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IRYGBFJPVBW6PPTETNIBWQJE4HJSA5PJ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XEBWSQVGHSTR4ZO7LVVEMPEGMV2DS5XR/