Skip to main content

Frappe Framework EUVDEUVD-2026-54152

| CVE-2026-47185 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. Recon
    Authenticate with low-privilege Frappe account
  2. Delivery
    Enumerate target user's workspace document name
  3. Exploit
    Submit save_page API call with victim workspace identifier
  4. Install
    Inject malicious JavaScript in workspace blocks payload
  5. C2
    Victim opens modified workspace in browser
  6. Execute
    Script executes in victim's authenticated session
  7. Impact
    Exfiltrate session token or perform privileged actions

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 a valid authenticated user account on the target Frappe instance; any role that has access to the Workspace Save API endpoint is sufficient (PR:L per the CVSS 4.0 vector - no elevated privileges required). The attacker must know or enumerate the target user's workspace document name, which is obtainable via the workspace listing API available to authenticated users. Victim interaction is required: the target user must open their (now-modified) workspace in a browser for the injected script to execute (UI:P). The vulnerability affects all private workspace types in Frappe versions prior to 16.18.0 with no special configuration required. Limiting factors: (1) the attacker must possess a valid account on the same Frappe instance - unauthenticated exploitation is not possible; (2) XSS payload execution is deferred until the victim views their workspace; (3) Frappe instances that restrict self-registration or limit account creation to administrators significantly reduce the attacker population.

Impact

The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N) yields a score of 5.1 (Medium). Key signals: exploitation requires an authenticated session (PR:L), limiting exposure to existing account holders; the XSS payload only executes when the victim opens their workspace (UI:P), requiring social engineering or patience but no additional attacker effort. No EPSS score was supplied and the vulnerability is absent from CISA KEV; no public POC or exploit code has been identified at time of analysis. The absence of confidentiality impact in the vulnerable-system metrics (VC:N) slightly underrepresents stored XSS risk - session token theft is a realistic downstream outcome - though SC:L/SI:L partially capture cross-user effects. Real-world priority is moderate-to-high for multi-user Frappe/ERPNext deployments: any low-privilege account holder can target higher-privilege users (administrators, managers) to hijack sessions or perform privileged actions. Single-user or tightly access-controlled deployments face substantially lower risk.

Exploit ScenarioDerived

An attacker with a valid low-privilege Frappe account calls the Workspace Save API, supplying the name parameter of a target user's private workspace - which can be enumerated via the workspace listing API - and embeds malicious JavaScript in the workspace block or widget payload. When the victim (for example, a Frappe administrator) next opens their workspace in the browser, the injected script executes in their authenticated session, enabling the attacker to exfiltrate the victim's session cookie or silently perform administrative actions on their behalf. No public POC has been identified, but the attack requires only standard authenticated HTTP requests.

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

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

Alert me

AnalysisAIv1 – Aug 06, 2026

Workspace Save API in Frappe prior to version 16.18.0 permits any authenticated user to overwrite another user's private workspace by supplying an arbitrary workspace identifier, and to inject persistent malicious scripts into that workspace. The root cause is a missing ownership check in the save_page handler in frappe/desk/doctype/workspace/workspace.py, confirmed by the vendor fix and classified as stored XSS (CWE-79). No public exploit code has been identified and this vulnerability is not listed in CISA KEV, though the low exploitation complexity for any authenticated user and the persistent, targeted nature of the injection make it a meaningful risk in all multi-user Frappe and ERPNext deployments.

RemediationAI

Upgrade Frappe to version 16.18.0 or later, which is the vendor-confirmed fixed release. The patch introduces an ownership check in save_page that enforces is_workspace_manager() and doc.for_user == frappe.session.user before persisting workspace content; the fix commit is available at https://github.com/frappe/frappe/commit/8ef9e9076293c3f567b734ac9b1b81e63b805ab5. The full security advisory is at https://github.com/frappe/frappe/security/advisories/GHSA-mcr4-jc52-ww6x. If immediate patching is not feasible, a compensating control is to revoke write access to the Workspace doctype for all untrusted roles at the Frappe permission level - this eliminates workspace save access entirely for those roles but also disables legitimate workspace customization, which is a significant functional trade-off. Network-perimeter controls are ineffective because the attack originates from authenticated internal users via standard API requests.

Affected VersionsENISA

frappe < 16.18.0

Affected Packages

euvd frappe fix: 16.18.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package 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/JavaScript full-stack web framework that underpins ERPNext and a broad ecosystem of business applications. The vulnerable component is the save_page function in frappe/desk/doctype/workspace/workspace.py, which accepts a client-controlled name parameter identifying the target workspace document without verifying that the requesting session user owns that document. Because Frappe workspaces persist blocks and widget configurations that are subsequently rendered in the browser, an attacker can embed arbitrary JavaScript in a victim's workspace document. When the victim opens their workspace, the injected script executes in their authenticated browser session - a classic stored XSS pattern. The root cause maps to CWE-79 (Improper Neutralization of Input During Web Page Generation), confirmed by the vendor's XSS tag and the nature of the fix, which introduces is_workspace_manager() and doc.for_user == frappe.session.user ownership assertions before persisting workspace content.

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:L/VA:N/SC:L/SI:L/SA:N
vuln.today AI 5.4 MEDIUM

Network API requires authenticated low-privilege user (PR:L); victim must view workspace to trigger stored XSS (UI:R); script executes in victim's session crossing scope boundary (S:C), enabling session theft (C:L) and workspace content tampering (I:L).

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:L/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
Low
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.18.0, the Workspace Save API accepts a controlled workspace identifier from any authenticated user without enforcing workspace ownership, allowing modification of another user's private workspace and persistent script injection. This issue is fixed in version 16.18.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular Python ERP framework, significant ERPNext enterprise deployments
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.4%
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