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

- Severity: Medium 4.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.81%, higher than 54% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-06-06T16:39:57.000Z
- Modified: 2026-09-08T08:48:10.741Z
- Also known as: GHSA-9rp6-23gf-4c3h, BIT-SYNCTHING-2022-46165
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- syncthing syncthing: < 1.23.5; before 1.23.5
- github.com/syncthing/syncthing (Go): before 1.23.5
- syncthing (Bitnami): before 1.23.5

## Every score

- GitHub_M: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 4.6 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/syncthing/syncthing/security/advisories/GHSA-9rp6-23gf-4c3h> (exploit, advisory, vendor-advisory, web)
- <https://github.com/syncthing/syncthing/commit/73c52eafb6566435dffd979c3c49562b6d5a4238> (fix, patch, 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, web)
- <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)
- <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)

## Sources

- CVE List: [CVE-2022-46165](https://www.cve.org/CVERecord?id=CVE-2022-46165), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-9rp6-23gf-4c3h](https://github.com/advisories/GHSA-9rp6-23gf-4c3h), CC-BY-4.0, modified 2024-07-24
- NVD: [CVE-2022-46165](https://nvd.nist.gov/vuln/detail/CVE-2022-46165), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYNCTHING-2022-46165](https://osv.dev/vulnerability/BIT-SYNCTHING-2022-46165), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-46165 · Whole record: https://cve.day/CVE-2022-46165.json · Rebuilt by cve.day 2026-11-25T22:58:19.349Z
