CVE-2023-50974
JavaScript vulnerability analysis and mitigation

Overview

In Appwrite CLI before version 3.0.0, a security vulnerability was discovered where user credentials stored in the ~/.appwrite/prefs.json file had overly permissive UNIX permissions (0644). This allowed any local system user to access the stored Appwrite credentials (NVD, Exploit).

Technical details

The vulnerability stems from improper file permissions management when storing authentication credentials. When using the login command, the CLI stores user credentials in ~/.appwrite/prefs.json with UNIX permissions set to 0644, making the file readable by all users on the system. The CVSS v3.1 base score is 5.5 (Medium) with the vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N (NVD).

Impact

The vulnerability allows any local user on the system to read the contents of the preferences file, potentially exposing Appwrite authentication credentials. This could lead to unauthorized access to the Appwrite instance and its resources (NVD, Exploit).

Mitigation and workarounds

The vulnerability has been fixed in Appwrite CLI version 3.0.0. Users should upgrade to this version or later. The fix involves setting more restrictive file permissions (0600) for the preferences file, allowing only the file owner to read and write to it (NVD).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management