GoldenDict Exposed Dangerous Method Vulnerability Allowing File Access and Modification

Vulnerability

A vulnerability exists in GoldenDict versions 1.5.0 and 1.5.1, where an exposed dangerous method allows for reading and modifying files on the user's system. This issue arises when a user adds a crafted dictionary, particularly in the XDXF format, and searches for terms included in that dictionary. The vulnerability is exacerbated by a lack of proper sanitization of XML content, insufficient restrictions on executing JavaScript, and a weak Content Security Policy.

Impact

Exploitation of this vulnerability allows for unauthorized access to read and modify files on the user's file system.

Reproduction

To reproduce this vulnerability, add a malicious dictionary in the XDXF format to GoldenDict 1.5.0 or 1.5.1. After the dictionary is loaded, search for any term included in the malicious dictionary. The embedded JavaScript in the dictionary's XML markup will execute, accessing and potentially modifying user files.

Added: Jul 17, 2025, 9:13 PM
Updated: Jul 17, 2025, 9:44 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.7
remediation
0.0
relevance
0.2
threat
1.6
urgency
2.9
incentive
0.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.