CVE-2026-134797 in Donetick
Summary
by MITRE • 11/23/2026
Donetick before 0.1.86 contains a path traversal vulnerability that allows authenticated users to delete other users' files by storing a crafted image value via PUT /api/v1/users. Attackers can set their image to a traversal key and upload a new profile photo, causing storage.Delete to remove other users' attachments or photos under the storage root.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/23/2026
The vulnerability identified in Donetick versions prior to 0.1.86 represents a critical path traversal flaw within the user management API endpoint PUT /api/v1/users. This security defect arises from insufficient validation of input data specifically related to image file paths or identifiers stored during profile updates. When an authenticated user submits a request containing a crafted value for their profile image, the application fails to properly sanitize this input before passing it to internal storage operations. Consequently, if an attacker configures their profile image field with directory traversal sequences such as dot-dot-slash followed by specific file paths, the underlying system interprets these characters literally rather than treating them as invalid or malicious inputs. This lack of strict path normalization allows the application logic to escape the intended user-specific storage directories and access arbitrary locations within the server's filesystem hierarchy that are accessible to the service account running the Donetick process.
The operational impact of this vulnerability is severe, primarily centering on unauthorized file deletion capabilities for authenticated attackers. By exploiting this flaw, an adversary can manipulate the storage.Delete function to remove attachments or photos belonging to other users stored under the common storage root directory. This capability directly compromises the integrity and availability aspects of the CIA triad within the context of data management. While the vulnerability requires authentication, which limits its exploitation scope compared to unauthenticated attacks, it still poses a significant risk in environments where user accounts may be compromised through phishing or credential stuffing. The ability to delete other users' files can lead to loss of critical business information, disruption of workflow for affected individuals, and potential data integrity issues if the deleted files are required for compliance or audit purposes. Furthermore, depending on the specific configuration of the storage backend, there is a theoretical risk that this traversal could be chained with other vulnerabilities to achieve remote code execution, although the primary documented impact remains destructive file deletion within accessible directories.
From a classification perspective, this vulnerability aligns closely with CWE-22: Improper Limitation of a Pathname to a Restricted Directory, commonly known as path traversal or directory traversal. The root cause is the failure to enforce strict boundaries on user-supplied input when constructing filesystem paths for storage operations. In terms of offensive security frameworks, this exploitation technique maps to MITRE ATT&CK tactic TA0043: Impact and specifically sub-technique T1485: Data Destruction. Attackers leverage this flaw to disrupt service availability and destroy data assets without authorization. The vulnerability highlights a common pitfall in web application development where input validation is applied superficially or only at the presentation layer, failing to enforce security controls at the business logic level during file system interactions.
To mitigate this vulnerability, organizations running Donetick versions earlier than 0.1.86 must upgrade immediately to version 0.1.86 or later, where the developers have implemented proper input sanitization and path validation mechanisms. For environments that cannot be patched instantly due to operational constraints, several defensive measures can reduce risk. Input validation should be enforced on all user-supplied fields related to file paths, ensuring that only alphanumeric characters and safe delimiters are accepted. Additionally, implementing a strict allowlist for permitted file extensions and directory structures can prevent traversal sequences from being processed by the storage backend. It is also advisable to configure the application's service account with minimal filesystem permissions, restricting write access strictly to designated user directories rather than broader root paths. Regular security audits focusing on API endpoint inputs and continuous monitoring of file system changes can further aid in detecting any attempted exploitation activities before significant damage occurs.