Skip to main content

AFFiNE CVE-2025-11945

LOW
Cross-site Scripting (XSS) (CWE-79)
2025-10-19 cna@vuldb.com
2.0
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Authenticate to AFFiNE
  2. Delivery
    Craft malicious image file with XSS payload
  3. Exploit
    Upload via Avatar endpoint
  4. Install
    Payload stored in database
  5. C2
    Victim loads attacker profile
  6. Execute
    Script executes in victim browser
  7. Impact
    Session hijacking or data exfiltration

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires: (1) authenticated access to AFFiNE (PR:L), (2) ability to upload files to the Avatar Upload Image endpoint, (3) victim user must view or load the attacker's avatar or profile (UI:P - user interaction mandatory), and (4) the application must render avatar data without proper output encoding. Non-default configurations or CSP headers may reduce exploitability. Unauthenticated attackers cannot exploit this vulnerability.

Impact

CVSS 2.0 (CVSSV4.0) with AV:N/AC:L/PR:L/UI:P reflects a low-severity vulnerability with network accessibility but significant mitigating factors: mandatory authentication (PR:L), required user interaction (UI:P), and limited integrity impact (VI:L - no confidentiality or availability impact). EPSS score of 0.03% (7th percentile) strongly reinforces this is a low-probability exploitation in the wild, suggesting this is primarily a proof-of-concept or targeted attack rather than widespread real-world threat. The presence of publicly available exploit code contradicts the minimal EPSS probability, indicating the vulnerability is known and exploitable but not actively leveraged at scale. Real-world risk is further constrained by the need for an attacker to first gain authentication and the requirement that victims interact with the malicious content. This is a genuine XSS flaw but in a low-exposure context - not a default-configuration remote code execution or mass-exploitation vector.

Exploit ScenarioDerived

An authenticated attacker uploads a specially crafted image file containing embedded JavaScript (e.g., an SVG image with <script> tags or an image file with XSS payload in metadata) to their avatar endpoint. When other users visit the attacker's profile or avatar is displayed in a shared workspace, the malicious script executes in their browsers, potentially stealing session cookies, modifying visible content, or redirecting users to phishing sites.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 29, 2026

Stored cross-site scripting (XSS) in AFFiNE up to version 0.24.1 allows authenticated users to inject malicious scripts via the Avatar Upload Image endpoint, which are executed in the browsers of other users viewing the attacker's profile. The vulnerability requires user interaction (victim must view the malicious avatar) and authenticated access, resulting in limited but confirmed integrity impact. Public exploit code exists; vendor contact attempts yielded no response.

RemediationAI

Upgrade AFFiNE to version 0.25.0 or later, which should include sanitization of avatar image uploads. In the interim, implement strict Content Security Policy (CSP) headers to restrict script execution and mitigate XSS impact - specifically, set script-src to 'self' and avoid 'unsafe-inline'. Additionally, perform input validation on avatar uploads at the application layer to reject or sanitize embedded HTML/JavaScript, and consider storing avatars with proper MIME-type enforcement (image-only). If immediate patching is unavailable, restrict avatar upload functionality or disable the feature until a vendor update is released. Note that CSP mitigation does not eliminate the vulnerability but reduces exploitability.

Affected ProductsAI

AFFiNE versions up to and including 0.24.1 are affected. The vulnerability specifically impacts the Avatar Upload Image endpoint component. CPE data not provided in available references; affected versions inferred from CVE description range.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in AFFiNE's Avatar Upload Image endpoint, a component that processes user-supplied avatar image data. The root cause is improper input validation or output encoding (CWE-79: Improper Neutralization of Input During Web Page Generation), allowing attacker-controlled data to be stored and later rendered without sanitization in web browsers. This is a stored XSS variant rather than reflected XSS, meaning the malicious payload persists in the application's database and affects multiple victims when they load the attacker's profile or avatar display. The attack vector is network-based but requires prior authentication and user interaction from victims.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 2.0 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from Vendor (vuldb) · only source for this CVE.

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability was identified in toeverything AFFiNE up to 0.24.1. This vulnerability affects unknown code of the component Avatar Upload Image Endpoint. Such manipulation leads to cross site scripting. The attack may be launched remotely. The exploit is publicly available and might be used. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy