Cross-site Scripting (XSS) in Web GUI in syncthing
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| syncthing | syncthing | before 1.23.5 | 1.23.5 | Patch available | CNA |
| — | github.com/syncthing/syncthing (Go) | before 1.23.5 | 1.23.5 | Patch available | GHSA-9rp6-23gf-4c3h |
- syncthing Vendorsyncthing Affected before 1.23.5 Fixed in 1.23.5 Patch available CNA
- github.com/syncthing/syncthing (Go) Vendor— Affected before 1.23.5 Fixed in 1.23.5 Patch available GHSA-9rp6-23gf-4c3h
Remediation
- Fix · CNA syncthing (syncthing) Fixed in 1.23.5
- Fix · GHSA-9rp6-23gf-4c3h github.com/syncthing/syncthing (Go) Fixed in 1.23.5 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2022-46165
- 2026-10-03 Alias added: GHSA-9rp6-23gf-4c3h
References
Other 7
- https://lists.fedoraproject.org/archives/list/[email protected]/message/IRYGBFJPVBW6PPTETNIBWQJE4HJSA5PJ/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XEBWSQVGHSTR4ZO7LVVEMPEGMV2DS5XR/
- https://github.com/syncthing/syncthing/commit/f5e5af391a6583047c64ef8c51642003a79b75cf
- https://github.com/syncthing/syncthing
- https://github.com/syncthing/syncthing/releases/tag/v1.23.5
- https://lists.fedoraproject.org/archives/list/[email protected]/message/IRYGBFJPVBW6PPTETNIBWQJE4HJSA5PJ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/XEBWSQVGHSTR4ZO7LVVEMPEGMV2DS5XR
More Syncthing vulnerabilities
- TI-2021-04502 Crash due to malformed relay protocol message CVSS 3.1HIGH 7.5
- TI-2017-14639 Syncthing version 0.14.33 and older is vulnerable to symlink traversal resulting in arbitrary file overwrite CVSS 3.0HIGH 7.5
Sources
- CVE-2022-46165 · CVE Program
- CVE-2022-46165 · NVD
- FIRST EPSS
- GHSA-9rp6-23gf-4c3h · GitHub Advisory Database · CC BY 4.0
- CVE-2022-46165 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences