Skip to content
Heist/ feed
Back to feed
MediumFix available

syncthing — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2022-46165

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.

Products
syncthing
Affected versions
1.19.2~ds1-1, 1.19.2~ds1-2, 1.19.2~ds1-3, 1.27.2~ds4-1, 1.27.7~ds1-1, 1.27.7~ds1-2, 1.27.7~ds1-3, 1.27.7~ds1-4, 1.27.7~ds1-5, 1.29.2~ds1-1, 1.29.5~ds1-1, 1.29.5~ds1-2, 1.29.5~ds1-3, 1.29.5~ds1-4, 1.29.5~ds1-5
Fixed versions
1.27.2~ds4-1
CVEs
CVE-2022-46165
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 15:32 UTC · Revision 1

Source evidence

DEBIAN-CVE-2022-46165

core-osv · Original source

Published 6 Jun 2023, 18:15 UTC

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.

osv:DEBIAN-CVE-2022-46165

syncthing

Fixed versions: Not specified

syncthing

Fixed versions: 1.27.2~ds4-1

syncthing

Fixed versions: 1.27.2~ds4-1

Complete source record
{
  "id": "8c6ec6813f52fc833c2a26f51e0e6d2e3bfddfb9ff7421b28e109b72033bc595",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-46165",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2022-46165",
    "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.",
    "evidence": "osv:DEBIAN-CVE-2022-46165",
    "products": [
      {
        "name": {
          "value": "syncthing",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.19.2~ds1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.19.2~ds1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.19.2~ds1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.2~ds4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.7~ds1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.7~ds1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.7~ds1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.7~ds1-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.27.7~ds1-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.2~ds1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.5~ds1-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.5~ds1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.5~ds1-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.5~ds1-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.29.5~ds1-5",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "syncthing",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.27.2~ds4-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "syncthing",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.27.2~ds4-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2022-46165",
      "aliases": [
        "DEBIAN-CVE-2022-46165"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "syncthing",
            "purl": "pkg:deb/debian/syncthing?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.19.2~ds1-1",
            "1.19.2~ds1-2",
            "1.19.2~ds1-3",
            "1.27.2~ds4-1",
            "1.27.7~ds1-1",
            "1.27.7~ds1-2",
            "1.27.7~ds1-3",
            "1.27.7~ds1-4",
            "1.27.7~ds1-5",
            "1.29.2~ds1-1",
            "1.29.5~ds1-1",
            "1.29.5~ds1-2",
            "1.29.5~ds1-3",
            "1.29.5~ds1-4",
            "1.29.5~ds1-5"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-46165.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.27.2~ds4-1"
                }
              ]
            }
          ],
          "package": {
            "name": "syncthing",
            "purl": "pkg:deb/debian/syncthing?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-46165.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.27.2~ds4-1"
                }
              ]
            }
          ],
          "package": {
            "name": "syncthing",
            "purl": "pkg:deb/debian/syncthing?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-46165.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-15T08:03:06.551154082Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-46165"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2022-46165"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-46165",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 325186,
  "published_at": "2023-06-06T18:15:10.1+00:00"
}