CVE-2025-67289: Frappe Framework and ERPNext Arbitrary File Upload in Attachments

CVE-2025-67289 · Severity: critical · CVSS 9.6 · Published 2025-12-22

Frappe Framework and ERPNext, which are used for building and managing business applications like ERP systems, are vulnerable to a security flaw in their file attachment feature. An attacker can upload a specially crafted file that, when opened by an administrator, allows the attacker to run malicious commands in the administrator's browser. This could lead to unauthorized access to sensitive business data, data modification, or full takeover of the administrative account.

Technologies: Frappe ERPNext, Frappe. Vendors: Frappe.

Quick answers

Is CVE-2025-67289 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-67289 being exploited in the wild.
How severe is CVE-2025-67289?
Critical severity, with a CVSS score of 9.6, published 22 December 2025.
Which products and versions are affected?
Frappe ERPNext 15.89.0.
Is there a fix for CVE-2025-67289?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2025-67289 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2025-67289?
Check whether you run Frappe ERPNext or Frappe at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A stored Cross-Site Scripting (XSS) and unrestricted file upload vulnerability exists in the Attachments module of Frappe Framework and ERPNext v15.89.0. The root cause is a failure to sanitize or strip executable content (such as JavaScript) from uploaded .XML or .HTM files stored in the /private/files/ directory. An attacker can upload a malicious file and, through social engineering or administrative review, induce an administrator to access the direct file URL. Because the script executes within the context of the administrator's session, the attacker can achieve privilege escalation, data exfiltration, or unauthorized data manipulation. While the NVD description mentions arbitrary code execution, the technical proof-of-concept specifically details a stored XSS leading to session hijacking and administrative action.

Affected products

  • Frappe Frappe Framework 15.89.0
  • Frappe ERPNext 15.89.0

Timeline

  • 2025-12-22: advisory: Initial CVE publication
  • 2025-12-22: disclosed: Public disclosure of the vulnerability details

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.