PyPI
CVE-2026-141426
The Google Drive client secret is written with permissions readable by other local users in whatstk
- Severity
- Low 2.0
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 0.9.0
- Attack
- Needs local access · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Read some data
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N- Sources
- CVE Program
Description
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.
Affected software
| Software | Affected versions |
|---|---|
whatstkPyPI · osv:PyPI:whatstk |
|
About whatstk
- Weekly downloads (PyPI)
- 224PyPI Stats, 1 Dec 2026
Vulnerabilities in whatstk
- In our list
- 4
- Published in the last 12 months
- 4
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-121691Unbounded decompression in the whatstk ZIP loader exhausts memory and diskMedium 6.7 10 Nov 2026
- CVE-2026-121577Unescaped header separators in whatstk build a regular expression that backtracks exponentiallyMedium 6.7 3 Nov 2026
- CVE-2026-121564Silent loss of messages when merging overlapping chat exports in whatstkLow 1.8 3 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-141426