CVE-2022-46165
MEDIUM 5.4CVSS 3.1syncthing vulnerable to Cross-site Scripting (XSS) in Web GUI
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.
- Published
- 6 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- BIT-syncthing-2022-46165GHSA-9rp6-23gf-4c3h
- Sources
- NVDJSONOSV GHSA-9rp6-23gf-4c3hJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.6 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | syncthing | syncthingcpe:2.3:a:syncthing:syncthing:*:*:*:*:*:*:*:* |
< 1.23.5 | 1.23.5 |
| OSV | Go | github.com/syncthing/syncthing | < 1.23.5 | 1.23.5 |
References
- https://github.com/syncthing/syncthing/commit/73c52eafb6566435dffd979c3c49562b6d5a4238 · Patch, WEB
- https://github.com/syncthing/syncthing/security/advisories/GHSA-9rp6-23gf-4c3h · Exploit, Vendor Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/IRYGBFJPVBW6PPTETNIBWQJE4HJSA5PJ/ · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XEBWSQVGHSTR4ZO7LVVEMPEGMV2DS5XR/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-46165 · ADVISORY
- https://github.com/syncthing/syncthing/commit/f5e5af391a6583047c64ef8c51642003a79b75cf · WEB
- https://github.com/syncthing/syncthing · PACKAGE
- https://github.com/syncthing/syncthing/releases/tag/v1.23.5 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 6 Jun 2023)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Jun 2023)