Skip to main content

Frappe Framework EUVDEUVD-2026-54175

| CVE-2026-49391 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-08-06 security-advisories@github.com
5.1
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with import-role account
  2. Delivery
    Craft CSV with script payload in column header
  3. Exploit
    Upload file via Data Import doctype
  4. Execution
    Payload stored in import preview and warning messages
  5. Persist
    Victim user navigates to import interface
  6. Impact
    Script executes in victim's browser session

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

The attacker must hold an active Frappe account with the 'Data Import' permission, which is typically granted to roles like 'System Manager' or custom import roles - not available to anonymous or basic end users. The Data Import feature must be in use and the victim must navigate to the import interface or view import results/warnings after the malicious file has been processed. Exploitation is blocked by: (1) absence of import permissions on the attacker's role, (2) the victim never viewing the affected import record, or (3) a strict Content Security Policy blocking inline script execution. The stored nature of the payload means the attacker does not need to interact with the victim directly after planting it.

Impact

The CVSS 4.0 base score of 5.1 (AV:N/AC:L/AT:N/PR:L/UI:P) is consistent with a stored XSS requiring low-privileged authentication and passive victim interaction. The scope change metrics SC:L and SI:L reflect the cross-user impact - a victim's browser context is the affected subsequent system, enabling session theft or interface manipulation at low severity. The requirement for PR:L meaningfully limits the attack surface: only users with data import permissions can plant a payload, which in practice restricts exploitation to internal or semi-trusted actors. The UI:P metric (passive interaction - victim need only navigate to the import view) lowers the barrier for payload delivery once planted. No EPSS data was provided. The absence of a CISA KEV entry and no identified public exploit code further reduce urgency. Real-world risk is moderate and primarily relevant to multi-tenant Frappe/ERPNext deployments where untrusted or low-trust users have import access; single-tenant or tightly permission-managed deployments face lower exposure.

Exploit ScenarioDerived

An authenticated internal user (or a compromised account) with data import access creates a CSV file whose column header contains a JavaScript payload such as a script tag or an event-handler-bearing attribute. After uploading the file through the Data Import interface, the malicious header is stored and rendered unescaped in preview and warning messages. When an administrator or another user opens the Data Import log or preview for that import record, the script executes silently in their browser, potentially exfiltrating session cookies or performing actions under their identity. No public proof-of-concept has been identified, but the fix diffs make the injection points straightforward to reconstruct.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Aug 06, 2026

Stored cross-site scripting in Frappe's Data Import feature allows an authenticated user with import permissions to inject persistent script payloads via maliciously crafted column headers in imported files. The unescaped headers are rendered in import preview and warning messages, causing script execution in the browser of any other user who subsequently views the import interface. Affected are all Frappe deployments on the 15.x branch prior to 15.109.0 and the 16.x branch prior to 16.19.0; no active exploitation has been confirmed (no CISA KEV listing) and no public exploit code has been identified at time of analysis.

RemediationAI

Upgrade Frappe to version 16.19.0 (16.x branch) or 15.109.0 (15.x branch); these are the vendor-confirmed fixed releases per GitHub advisory GHSA-7f28-gm9h-q6rg (https://github.com/frappe/frappe/security/advisories/GHSA-7f28-gm9h-q6rg). The underlying changes are in commits 002a36a2668781366e4bf1ff144da5e53446f540 and 2bf7b9d0b4c7f815de1c85695e9a027ecce8bed9. If an immediate upgrade is not feasible, restrict the Data Import permission to only highly trusted internal users via Frappe's Role-based permission system, which removes the authenticated entry point; note this may disrupt bulk-import workflows. A Content Security Policy header that disallows inline scripts can limit the blast radius of any stored payload but does not eliminate the stored content and may break other Frappe UI components - evaluate against your deployment before applying.

Affected VersionsENISA

frappe < 15.109.0
frappe 16.0.0-beta.1, < 16.19.0

Affected Packages

euvd frappe fix: 15.109.0
euvd frappe_16_0_0_beta_1 fix: 16.19.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

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

Technical ContextAI · show details

Frappe is a Python and JavaScript full-stack web framework that underpins ERPNext and several other enterprise applications. The Data Import doctype allows privileged users to bulk-load records from CSV or Excel files. Column headers from the uploaded file are used in multiple rendering contexts: in the JavaScript import preview widget (import_preview.js), in the column-warning overlay (data_import.js), and in Python-generated warning messages returned by importer.py. In all these locations, the raw header_title value was interpolated directly into HTML or passed to frappe.bold() without sanitization, satisfying CWE-79 (Improper Neutralization of Input During Web Page Generation). The fix applied frappe.utils.escape_html() in JavaScript and escape_html() in Python across all five affected rendering sites, as confirmed by commits 002a36a and 2bf7b9d. Because the stored payload survives across sessions, this is a persistent (stored) XSS rather than a reflected variant.

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 5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Network delivery, low complexity; PR:L for required import permission; UI:R for victim navigation; S:C and C:L/I:L for cross-user session impact.

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

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

1
Patch available
Aug 06, 2026 - 23:03 EUVD

DescriptionCVE.org

Frappe is a full-stack web application framework. Prior to 16.19.0 and 15.109.0, Data Import does not escape imported column headers before rendering previews and results, allowing an authenticated importer to persist script content that executes when another user views the import interface. This issue is fixed in versions 16.19.0 and 15.109.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
ERPNext/Frappe used in enterprise ERP, moderate but not ubiquitous deployment
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 Yes
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
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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