# CVE-2026-141426: The Google Drive client secret is written with permissions readable by other local users in whatstk

Status: published. Published: 2026-12-01. Updated: 2026-12-02.

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.

## Remediation

- fix: Upgrade to whatstk 0.9.0 or later, which writes the directory at 0700 and the files at 0600. Running gdrive_init once on the upgraded version also tightens a directory and files left behind by an earlier version. Google Drive support is deprecated in 0.9.0 and the module is removed in 0.10.0, which does not carry this code at all. (source: CNA: Secur0)
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/lucasrodes/whatstk/pull/183
- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Secur0) — https://github.com/lucasrodes/whatstk/commit/01d66d8

## Affected products and versions

- lucasrodes / whatstk (whatstk): ≥ 0.5.0; < 0.9.0 (affected, semver). Source: CNA: Secur0

## Severity and prioritization

- CVSS 4.0: 2 (low); 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; source: CNA: Secur0

- CVSS 4.0: 2 (low); 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X; source: NVD: 4daa8cea-433a-44bd-9456-53b127fc289a

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-12-02; percentile 7.03%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- Weaknesses: CWE-276

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/lucasrodes/whatstk/pull/183 (CNA: Secur0; patch)

- https://github.com/lucasrodes/whatstk/commit/01d66d8 (CNA: Secur0; patch)

- https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0 (CNA: Secur0; release-notes)

- https://secur0.com/en/cna/cve-list/cve-2026-141426-whatstk-world-readable-gdrive-client-secret (CNA: Secur0; third-party-advisory, technical-description)

- https://github.com/lucasrodes/whatstk/commit/01d66d8 (4daa8cea-433a-44bd-9456-53b127fc289a)

- https://github.com/lucasrodes/whatstk/pull/183 (4daa8cea-433a-44bd-9456-53b127fc289a)

- https://github.com/lucasrodes/whatstk/releases/tag/v0.9.0 (4daa8cea-433a-44bd-9456-53b127fc289a)

- https://secur0.com/en/cna/cve-list/cve-2026-141426-whatstk-world-readable-gdrive-client-secret (4daa8cea-433a-44bd-9456-53b127fc289a)

## Provenance

- CNA: Secur0: https://www.cve.org/CVERecord?id=CVE-2026-141426; retrieved 2026-12-02; source updated 2026-12-02

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-141426; retrieved 2026-12-02; source updated 2026-12-01

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-141426; retrieved 2026-12-02; source updated Not reported

Revision: 00383f9f145c688b5802e4071da1959b47a0702cf9a1ce46646c2bd25a8e6fc4

Canonical: https://y2.dev/cve/CVE-2026-141426

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.