The Google Drive client secret is written with permissions readable by other local users in whatstk
- Exploited
- No known exploitation
- Fix
- Fixed in 0.9.0
- Who is exposed
- Not reported
Summary
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.
What to do
Upgrade to a fixed version: 0.9.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-141426 (The Google Drive client secret is written with permissions readable by other local users in whatstk), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-141426 (entry last updated 2026-12-01):
Affected:
- PyPI package whatstk: from 0.5.0, fixed in 0.9.0
Fixed versions: 0.9.0.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-141426 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-141426 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (PyPI): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/lucasrodes/whatstk/pull/183
- https://github.com/lucasrodes/whatstk/commit/01d66d8
- https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0
- https://secur0.com/en/cna/cve-list/cve-2026-141426-whatstk-world-readable-gdrive-client-secret
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-141426
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-141426"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure?/25Unknown. No advisory context yet
- Reach10/20Affects PyPI packages
- Severity2/10CVSS 2.0
- No patch0/5No signal
What would change the score
- Would score about 67 if added to CISA KEV
- Would score about 62 if CISA's SSVC rates exploitation active
- Would score about 34 if advisories confirm default setups are exposed
Impact
- Widely usedwhatstk has 366 weekly downloads. pypistats.org
Timeline
- CVE published
- First seen by cve.now
Evidence 6
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-141426 |
| Record | NVD · CVE-2026-141426 |
| Other links 4 | |
| Patch | GitHub · lucasrodes/whatstk · Pull request #183 |
| Patch | GitHub · lucasrodes/whatstk · Commit 01d66d8 |
| Repository | GitHub · lucasrodes/whatstk · Release v0.9.0 |
| Link | secur0.com · en/cna/cve-list/cve-2026-141426-whatstk-world-readable-gdrive-client-secret |
Questions about CVE-2026-141426
Is CVE-2026-141426 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-141426?
whatstk (PyPI): from 0.5.0 before 0.9.0.
Source: cve.now feed data
How do I fix CVE-2026-141426?
Upgrade to a fixed version: 0.9.0.
Source: cve.now feed data
Related
- CVE-2026-121691Unbounded decompression in the whatstk ZIP loader exhausts memory and disk
- CVE-2026-121577Unescaped header separators in whatstk build a regular expression that backtracks exponentially
- CVE-2026-121564Silent loss of messages when merging overlapping chat exports in whatstk
- CVE-2026-129255CoolerMaster MASTERPLUS+ Device Driver WinRing0x64.sys sub_11504 default permission
- CVE-2026-126785rmalright TR-VISION HOME IOCTL WFanManager.sys sub_11504 default permission
- CVE-2026-89061During an internal security assessment, a potential vulnerability was discovered in Lenovo PC Manager, distributed exclusively in the…
No corrections so far. Something wrong on this page? Report an error.