CVE-2026-141426
LowCVSS 2.0Exploitation Probability (EPSS)
Low risk7th percentile - higher than 7% of all known CVEs
Summary
Incorrect Default Permissions (CWE-276) in gdrive_init() in whatstk 0.5.0 before 0.9.0 causes ~/.config/whatstk/gdrive, client_secrets.json, and settings.yaml to be created with umask-derived permissions (0755/0644 by default), allowing other local users to read the Google Drive OAuth client secret.
Risk Assessment
Another user on the same machine can read the OAuth secret and access the user's Google Drive resources.
Recommendation
Upgrade whatstk to a fixed version or manually set restrictive permissions (0600/0700) on the config directory and files.
Other vulnerabilities in whatstk
See all- CVE-2026-142382Low
whatstk library versions 0.3.0 through 0.9.0 download sample chat files over HTTP (http scheme), allowing an attacker on the network path to substitute the file content before the redirect to HTTPS. The _str_from_file() function passes http-prefixed paths to urlopen(), and the first request travels in cleartext on port 80.
- CVE-2026-121691Medium
In whatstk from 0.7.0 before 0.9.0, the ZIP loader does not bound the size of extracted members or check the compression ratio. A party supplying a chat export can exhaust the memory and disk of the parsing process, causing it to be killed.
- CVE-2026-121577Medium
whatstk from 0.2.0 before 0.9.0 builds the header regular expression in generate_regex() without escaping format characters, so a date separator that is a regex metacharacter alters the pattern. A malicious chat export can cause unbounded CPU consumption during parsing or an uncaught exception in the calling program.
- CVE-2026-121564Low
The whatstk library from 0.3.0 before 0.9.0 contains an incomplete comparison vulnerability (CWE-1023) in merge_chats() (whatstk/utils/chat_merge.py), reached from BaseChat.merge(). The merge keeps whole the chat whose first message is oldest and appends from the other only messages strictly newer than the last message of the first, so messages of the second chat falling within the first's date range are silently discarded. The merged result is returned without a warning and without a count of what was removed.
Original NVD description (English source)
Incorrect Default Permissions (CWE-276) in gdrive_init() (whatstk/utils/gdrive.py) in whatstk from 0.5.0 before 0.9.0 allows another user of the same machine to read the Google Drive OAuth client secret of the user who ran it. The function creates ~/.config/whatstk/gdrive with os.makedirs and no mode argument, copies the supplied client secret file to client_secrets.json with shutil.copyfile, and writes settings.yaml through a plain open call, so all three take whatever the process umask allows. Under a default umask of 022 the directory is created 0755 and both files 0644. shutil.copyfile does not carry the source file's permissions over, so a client secret the user had restricted to 0600 is written out at 0644. Whether the files end up readable by other local users therefore depends on the umask in force when gdrive_init runs and on the permissions of the directories above them, and not on the permissions of the file the user supplied. The refresh token in credentials.json is written by pydrive2 rather than by whatstk and is observed at 0600. This results in the OAuth client secret and the generated settings being readable in plain text by other users of the machine.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

