FrappeApplication

CVE-2026-31879

MEDIUM · 5.4 CVSS v3.1 Published 2026-03-11
Fix available
A fix is available. Upgrade to 14.100.2 / 15.101.0 or later.
See remediation →
58/100
Remediation priority · Elevated
Remotely reachable

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
Frappe is a full-stack web application framework. Prior to 14.100.2, 15.101.0, and 16.10.0, due to a lack of validation and improper permission checks, users could modify other user's private workspaces. Specially crafted requests could lead to stored XSS here. This vulnerability is fixed in 14.100.2, 15.101.0, and 16.10.0.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

An insecure direct object reference (IDOR) vulnerability in Frappe framework allows authenticated users to modify other users' private workspace configurations due to missing permission validation. The lack of proper authorization checks on workspace modification endpoints, combined with the ability to inject malicious scripts through crafted requests, results in stored cross-site scripting (XSS).

MitigationUpgrade to Frappe versions 14.100.2, 15.101.0, or 16.10.0 which implement proper permission validation on workspace modification endpoints and sanitize user inputs.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
FrappeApplication
Affected:< 14.100.2>= 15.0.0, < 15.101.0>= 16.0.0, < 16.10.0

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify installed Frappe version
    Run 'bench version' in your Frappe/ERPNext installation directory, or check the version in your sites/[sitename]/site_config.json file under 'frappe_version' or inspect the version module via Python: 'bench execute frappe.utils.get_fullname' or check the installed version from requirements.txt
    Affected if The installed version is < 14.100.2, OR >= 15.0.0 and < 15.101.0, OR >= 16.0.0 and < 16.10.0
  2. Verify workspace module is enabled
    Log in as an authenticated user and navigate to the workspace settings, or check via API: GET /api/method/frappe.desk.desktop.get_workspace_by_name with a valid user session
    Affected if The workspace module is active and users have access to create or modify private workspaces
  3. Test workspace modification endpoint for IDOR
    As User A, create a private workspace and capture the workspace name/ID. Then as User B, attempt a PUT or POST request to /api/method/frappe.desk.page.workspace.workspace.set_custom_css or /api/method/frappe.desk.page.workspace.workspace.save_workspace to modify User A's workspace using the captured workspace name
    Affected if User B can successfully modify User A's private workspace configuration without receiving a 403 Forbidden or permission error
  4. Inspect for stored XSS in workspace content
    Check the workspace document in the database table 'Workspace' (or DocType 'Workspace') for any script tags or malicious content in fields like 'content', 'script', 'on_load', or 'custom_scripts' that were not created by the workspace owner
    Affected if Workspace documents contain unsanitized script tags or XSS payloads that were injected by another user
  5. Review API permission logs
    Check server logs orbench output for requests to workspace modification endpoints. Look for successful responses (200 OK) where the requesting user differs from the workspace owner
    Affected if Logs show authenticated users successfully modifying workspaces owned by different users without authorization errors

You are affected if your Frappe version falls within the vulnerable ranges AND users can modify other users' private workspace configurations through the API without permission errors.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 14.100.2 / 15.101.0 / 16.10.0 or later
Fixed in 14.100.215.101.016.10.0
Interim mitigation

Upgrade to Frappe versions 14.100.2, 15.101.0, or 16.10.0 which implement proper permission validation on workspace modification endpoints and sanitize user inputs.

Recommended fix High confidence

14.100.2 (for v14.x), 15.101.0 (for v15.x), or 16.10.0 (for v16.x)

  1. 1. Identify the current Frappe version by checking the installed version in your environment
  2. 2. Determine which major version branch (14.x, 15.x, or 16.x) you are currently running
  3. 3. For version 14.x: Upgrade to version 14.100.2 or later
  4. 4. For version 15.x: Upgrade to version 15.101.0 or later
  5. 5. For version 16.x: Upgrade to version 16.10.0 or later
  6. 6. After upgrading, verify the fix is applied by checking that users cannot modify other users' private workspaces
  7. 7. Test that stored XSS payloads in workspace configurations are properly sanitized and not executable
Caveat Review Frappe release notes for your version branch to check for any breaking changes between your current version and the target fixed version

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Frappe Scoped from the published advisory
  • Consultation4.0 h
  • Implementation12.0 h
  • Testing6.0 h
  • Review / QA4.0 h
26.0 hours of engineering $4,580
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,328.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2026-31879 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-31879 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data