CVE-2022-2925: Appwrite Vulnerable to Cross-site Scripting

appwrite/server-ce Updated 02 Oct 2025

Summary

10/09/2022
Yes i
Moderate
5.4

CVE-2022-2925: Appwrite Vulnerable to Cross-site Scripting. Affects appwrite/server-ce versions < 1.0.0-RC1. Fixed in 1.0.0-RC1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Appwrite is an open-source backend server that helps developers build and deploy applications easily. It provides various features such as user authentication, storage, and database management. The vulnerability in Appwrite allows for stored cross-site scripting (XSS) attacks in usernames, function names, storage bucket names, and database collection names.

Vulnerability Detail

The stored XSS vulnerability in Appwrite can be exploited by an attacker to inject malicious scripts into the application's user interface. This can lead to various consequences, including the theft of sensitive user information, session hijacking, and unauthorized actions on behalf of the user. The vulnerability is rated as moderate severity with a CVSS score of 5.4.

How To Fix

Minimum fixed version

1.0.0-RC1

This is the first release that contains the fix.

composer require appwrite/server-ce:1.0.0-RC1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, developers can sanitize and validate user input to prevent the execution of malicious scripts. This can be done by implementing input validation and output encoding techniques. Here is an example of input validation using PHP:

$input = $_POST['username'];

if (!preg_match('/^[a-zA-Z0-9]+$/', $input)) {
    // Handle invalid input
}

Conclusion

Appwrite is vulnerable to stored cross-site scripting (XSS) attacks in various input fields. It is crucial for developers to upgrade to version 1.0.0-RC1 or later of the 'appwrite/server-ce' package to fix this vulnerability. Additionally, implementing input validation and output encoding techniques can provide temporary protection against potential attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for appwrite/server-ce →

Share this vulnerability

FAQ

Appwrite is an open-source backend server that simplifies application development and deployment. It provides various features such as user authentication, storage, and database management.

Stored cross-site scripting (XSS) is a type of vulnerability that allows an attacker to inject malicious scripts into a website or application. These scripts are then executed by unsuspecting users, leading to potential security breaches.

The Appwrite XSS vulnerability can result in the theft of sensitive user information, session hijacking, and unauthorized actions on behalf of the user. It poses a moderate level of risk to the security of affected applications.

To fix the Appwrite XSS vulnerability, it is recommended to upgrade to version 1.0.0-RC1 or later of the 'appwrite/server-ce' package. This version includes the necessary security patches to mitigate the vulnerability.

As a temporary workaround, developers can sanitize and validate user input to prevent the execution of malicious scripts. Implementing input validation and output encoding techniques can help mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for appwrite/server-ce.

How To Fix

Minimum fixed version

1.0.0-RC1

This is the first release that contains the fix.

composer require appwrite/server-ce:1.0.0-RC1

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback