Skip to content
Fencer Vulns
medium 4.6

CVE-2022-46165 json

Cross-site Scripting (XSS) in Web GUI in syncthing

published 2023-06-06 3 y ago modified 2026-09-08 2 mo ago also BIT-syncthing-2022-46165 , EUVD-2023-1766 , GHSA-9rp6-23gf-4c3h

cvss
4.6
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 56%
public exploits
0
none known

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.

Patch / fix

  • go github.com/syncthing/syncthing 1.23.5
  • bitnami syncthing 1.23.5
  • syncthing syncthing 1.23.5
  • syncthing Debian 14, Debian 13 1.27.2~ds4-1

debian advisories DEBIAN-CVE-2022-46165

  • syncthing openSUSE Tumbleweed 1.23.5-1.1
  • syncthing Package Hub 15 SP5, openSUSE Leap 15.5 1.23.5-bp155.2.3.1

opensuse advisories openSUSE-SU-2024:12984-1openSUSE-SU-2023:0126-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-46165 updated cvss 6.5

syncthing: Cross-site scripting through malicious files

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
22 mo ago

Exploit prediction

0.78% chance of exploitation in the next 30 days, higher than 56% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • github.com https://github.com/syncthing/syncthing/security/advisories/GHSA-9rp6-23gf-4c3h referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 4.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
GitHub 3.1 4.6 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
NVD 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
OSV 3.1 5.4 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
go github.com/syncthing/syncthing
<1.23.5
1.23.5
bitnami syncthing
<1.23.5
1.23.5

Affected products

  • syncthing syncthing

Classification

Weakness
  • CWE-79 Improper Neutralization of Input During Web Page Generation

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.