Skip to main content

eLabFTW CVE-2025-62793

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-10-27 security-advisories@github.com
6.8
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege eLabFTW account
  2. Delivery
    Upload crafted SVG with embedded script
  3. Exploit
    Victim opens SVG URL or embedding page
  4. Execution
    Script executes in victim session (stored XSS)
  5. Impact
    Hijack session and exfiltrate lab data

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) an authenticated eLabFTW account with permission to upload files (PR:L), and (2) the application serving uploaded SVG files inline with Content-Type image/svg+xml - the exact behavior removed in the 5.3.0 patch - so unpatched instances before 5.3.0 are affected by default. Delivery also requires victim user interaction (UI:R): a target user must open the malicious SVG's direct URL or load a page that embeds it. Limiting factors that reduce realistic risk: the attacker cannot be fully unauthenticated, the payload only fires when a victim views the content, and single-user or tightly access-controlled instances where untrusted accounts cannot upload sharable attachments are not meaningfully exposed.

Impact

This is a genuine but moderate-priority vulnerability, not an emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N, base 6.8) and the source code evidence are mutually consistent: the removed 'image/svg+xml' entry in DownloadController.php confirms the root cause is SVG files being served inline rather than forced to download, enabling stored XSS under the application origin. Key mitigating signals align against a high-urgency rating: PR:L means an attacker must first hold a valid eLabFTW account capable of uploading files, and UI:R means a victim must actually open or embed the malicious SVG - this is not a drive-by, unauthenticated flaw. The scope change (S:C) and C:H reflect that the injected script runs in another user's authenticated session, allowing session hijacking and data exfiltration. EPSS is low at 0.26% (17th percentile), there is no CISA KEV listing, and no public exploit was identified, so all exploitation signals point to low real-world activity. There is no conflict among the signals here; the only caveat is that eLabFTW is a collaborative multi-user lab platform, so a low-privilege insider or a compromised user account materially raises practical risk versus the CVSS number alone.

Exploit ScenarioDerived

An attacker with a standard authenticated eLabFTW account uploads a crafted SVG file containing embedded JavaScript to an experiment or database item. When a colleague or administrator opens the SVG's URL or views a page that embeds it, the script executes in that victim's session under the application origin, allowing the attacker to steal the session, exfiltrate lab data, or perform actions as the victim. No public exploit code was identified at time of analysis, but crafting a malicious SVG with inline script is trivial and well-documented.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 19, 2026

Stored cross-site scripting in eLabFTW before 5.3.0 lets authenticated users with file-upload permission run script in another user's browser by uploading a crafted SVG that the application serves inline with image/svg+xml. The attack requires a victim to open the SVG directly or view a page that embeds it, so it is not remotely exploitable without interaction. EPSS is 0.26% (17th percentile), and no public exploit was identified at time of analysis; this is a genuine but moderate-priority issue rather than an emergency.

RemediationAI

Upgrade to eLabFTW 5.3.0 or later, which removes image/svg+xml from the inline-serving allowlist in DownloadController (commit 09b95e38f82f041edac0dd6962c70499e2d8d8e2; advisory GHSA-rq98-8jh9-684f). If immediate upgrade is not possible, remove image/svg+xml from the application's inline content-type handling or configure the web server to return uploaded SVG files with Content-Disposition: attachment and X-Content-Type-Options: nosniff; the trade-off is that legitimate SVG previews will no longer render inline. Alternatively, block SVG uploads entirely or restrict attachment-upload permission to trusted accounts, accepting reduced functionality for users who rely on vector graphics. These controls are compensating measures, not substitutes for the 5.3.0 fix.

Affected ProductsAI

eLabFTW versions prior to 5.3.0 are affected. No CPE strings were supplied in the intelligence, but the vulnerable behavior is in the DownloadController's inline handling of image/svg+xml, which is present by default in unpatched instances that allow file uploads. The vendor advisory GHSA-rq98-8jh9-684f and the fixing commit 09b95e38f82f041edac0dd6962c70499e2d8d8e2 confirm that 5.3.0 is the first fixed release. Deployments that do not allow untrusted users to upload attachments, or that already force SVG downloads, have reduced exposure.

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

eLabFTW is a PHP-based electronic lab notebook; the flaw is CWE-79 (stored cross-site scripting) caused by the DownloadController allowing uploaded SVG files to be returned inline with Content-Type image/svg+xml. SVG is an XML format that can carry script and event handlers, so when a browser renders the file it executes in the eLabFTW origin, giving the attacker access to the victim's session and same-origin data. The upstream fix commit 09b95e38f82f041edac0dd6962c70499e2d8d8e2 removes image/svg+xml from the inline response allowlist; affected deployments are those before 5.3.0 that accept uploads and serve SVG inline by default. The assessed vector is network-reachable, low-privilege authenticated (PR:L), requires user interaction (UI:R), and has a scope change with high confidentiality impact and limited integrity impact; EPSS is low at 0.26% (17th percentile).

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 (github) PRIMARY 6.8 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
vuln.today AI 7.6 HIGH

Upload needs a low-privilege account (PR:L) and the victim must view the SVG (UI:R); script runs cross-user in the app origin (S:C), hijacking sessions (C:H) and acting on their behalf (I:L).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

DescriptionCVE.org

eLabFTW is an open source electronic lab notebook for research labs. The application served uploaded SVG files inline. Because SVG supports active content, an attacker could upload a crafted SVG that executes script when viewed, resulting in stored XSS under the application origin. A victim who opens the SVG URL or any page embedding it could have their session hijacked, data exfiltrated, or actions performed on their behalf. This vulnerability is fixed n 5.3.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
Low
niche open-source electronic lab notebook for research labs
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
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