Cross-site Scripting (XSS) - Stored in appwrite/appwrite
Description
Appwrite prior to 1.0.0-RC1 contains a stored cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Appwrite prior to 1.0.0-RC1 contains a stored cross-site scripting (XSS) vulnerability that allows attackers to inject malicious scripts.
Vulnerability
Overview
CVE-2022-2925 is a stored cross-site scripting (XSS) vulnerability in Appwrite, an open-source development platform that provides backend infrastructure for web, mobile, and AI applications [1]. The vulnerability affects versions prior to 1.0.0-RC1 and was fixed in a commit that updated the code.js file [3]. Stored XSS occurs when user-supplied input is not properly sanitized before being stored and later rendered to other users [4].
Exploitation
An attacker can exploit this vulnerability by submitting crafted input containing malicious JavaScript code through a vulnerable input field or endpoint [2]. The attack requires no special privileges beyond normal user access to the platform, and the injected script will be stored by the application. When other users view the affected page or content, the malicious script executes in their browser context, potentially allowing the attacker to steal session tokens, cookies, or perform actions on behalf of the victim [4].
Impact
Successful exploitation leads to unauthorized access to victim accounts, data exfiltration, or website defacement within the context of the Appwrite application [2]. Because the XSS is stored, the impact can propagate to all users who access the infected content, making it a high-severity issue that could compromise the entire application's security [4].
Mitigation
The vulnerability was patched in Appwrite version 1.0.0-RC1 [3]. Users running earlier versions should upgrade immediately to mitigate the risk. There are no known workarounds, and the fix requires updating to the patched release [4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
appwrite/server-cePackagist | < 1.0.0-RC1 | 1.0.0-RC1 |
Affected products
2- Range: unspecified
Patches
11 file changed · +1 −1
public/scripts/views/forms/code.js+1 −1 modified@@ -58,7 +58,7 @@ value = element.value; } - code.innerHTML = value; + code.textContent = value; Prism.highlightElement(code);
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-5ffj-mph5-c5hvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-2925ghsaADVISORY
- drive.google.com/file/d/1JoMQy1KTodVtIVOzH3vKcC3AwZz0PrFb/viewghsaWEB
- github.com/appwrite/appwrite/commit/b5b4d92623c13fa8e5c71736db461e81fb7a7adeghsax_refsource_MISCWEB
- huntr.dev/bounties/a3b4148f-165f-4583-abed-5568696d99dcghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.