CVE-2022-46165
Cross-site Scripting (XSS) in Web GUI in syncthing
Reported by github_m · Published June 6, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| syncthing | Bitnami | 1.23.5 |
| syncthing | Bitnami | 1.23.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| syncthing | syncthing | < 1.23.5 |
| syncthing | syncthing | 0 |
| github.com | syncthing/syncthing | 0 |
Timeline
- Jun 6, 2023 CVE Published
- Jun 7, 2023 EPSS Score (30 in total, the first dated here)
- Nov 21, 2024 CVE Updated
- Apr 2, 2026 Security Advisory (2 in total, the first dated here)
- Jun 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-46165
vulnetix vdb fixes CVE-2022-46165
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-46165/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
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://github.com/syncthing/syncthing/commit/f5e5af391a6583047c64ef8c51642003a79b75cf patch
- https://github.com/syncthing/syncthing/releases/tag/v1.23.5 url
- https://nvd.nist.gov/vuln/detail/CVE-2022-46165 advisory
- https://github.com/advisories/GHSA-9rp6-23gf-4c3h advisory