Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908034 (CVE-2022-46165)

Summary: <net-p2p/syncthing-1.23.5: XSS via shared folder names
Product: Gentoo Security Reporter: John Helmert III <ajak>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: CONFIRMED ---    
Severity: minor CC: marecki
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: B4 [glsa?]
Package list:
Runtime testing required: ---
Bug Depends on: 908046    
Bug Blocks:    

Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2023-06-08 04:11:55 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.
Comment 1 Larry the Git Cow gentoo-dev 2023-06-08 13:16:54 UTC
The bug has been referenced in the following commit(s):

commit 0e69d298d016e0b8c970785bca2e9b3652b11ee8
Author:     Marek Szuba <>
AuthorDate: 2023-06-08 13:15:14 +0000
Commit:     Marek Szuba <>
CommitDate: 2023-06-08 13:16:51 +0000

    net-p2p/syncthing: drop 1.23.4-r1
    No versions vulnerable to CVE-2022-46165 left in the tree.
    Signed-off-by: Marek Szuba <>

 net-p2p/syncthing/Manifest                   |   1 -
 net-p2p/syncthing/syncthing-1.23.4-r1.ebuild | 112 ---------------------------
 2 files changed, 113 deletions(-)