External risk intelligence

ERPNext and Frappe Framework SVG Avatar Upload Stored XSS Vulnerability

CVE advisorySeverity: CRITICAL (CVSS 9.0)

CVE-2025-65267

ERPNext is a web-based enterprise resource planning platform commonly deployed as an internet-facing application for business operations, providing remote access to users. The vulnerability involves stored cross-site scripting via avatar uploads, which occurs within the standard web interface of this internet-reachable application.

Cross-site Scripting

Frappe Erpnext

15.83.215.86.0

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory details a critical vulnerability in ERPNext and Frappe Framework that allows an attacker to inject malicious JavaScript into the system through specially crafted avatar images. If an administrator views such an image, it can lead to the compromise of user accounts, elevated privileges, or a full takeover of the ERPNext instance. The main concern is confirming relevance and exposure within your environment.

  • Malicious avatars can execute harmful code.
  • Protects sensitive business and user data.
  • Confirm if your ERPNext or Frappe is affected.

Attack Path

How an attacker could exploit the issue

An attacker could upload a specially crafted SVG image as an avatar. If an administrator later views this avatar, malicious JavaScript embedded within the image would execute in their browser. This could allow the attacker to take over accounts, escalate privileges, or compromise the entire ERPNext system.

  • Entry: Attacker uploads a malicious SVG.
  • Trigger: Administrator views the avatar.
  • Risk: Account takeover and system compromise.

Live Threat

Current exploitation, exposure, and threat context

When an administrator views a specially crafted SVG avatar, malicious JavaScript can execute, potentially impacting the ERPNext instance. This occurs due to improper validation of uploaded SVG avatar images.

  • System data and user data at risk.
  • Malicious JavaScript execution via avatar.
  • Account takeover or instance compromise.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability affects ERPNext and Frappe Framework deployments. Ownership for remediation will likely fall to the teams managing these applications, potentially involving infrastructure or platform teams depending on deployment specifics. The immediate priority is to identify all instances of the affected technology, assess their exposure and business criticality, and then assign an accountable owner to plan and execute the necessary fixes.

  • Application owners should manage remediation.
  • Verify instances and their reachability.
  • Plan risk-based fixes and vendor coordination.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is ERPNext and the Frappe Framework?

ERPNext is a comprehensive web-based enterprise resource planning platform used by businesses to manage operations like accounting, inventory, and human resources. It is built upon the Frappe Framework, a full-stack, low-code web application framework. Together, they provide the backend and user interface necessary for business process automation. Because these tools often manage sensitive internal data, they are frequently hosted as web applications accessible to users across an organization.

What does CWE-79 mean for CVE-2025-65267?

CWE-79 refers to Improper Neutralization of Input During Web Page Generation, commonly known as Stored Cross-Site Scripting (XSS). In the context of CVE-2025-65267, this means the software fails to properly inspect uploaded SVG files for hidden, malicious JavaScript. Because the application stores these files and later serves them to other users, the injected code is treated as legitimate content, allowing it to run automatically within the browser of anyone who views the avatar.

How is this vulnerability triggered?

The trigger requires an attacker to successfully upload a specially crafted SVG file as an avatar through the application's interface. The malicious code remains dormant until an administrator clicks on or views the infected profile image. Note that the vulnerability is not triggered simply by the presence of the file on the server; the execution path specifically relies on a victim with high-level system permissions interacting with the image link.

Is my instance at risk according to Halo Surface Signal?

Halo Surface Signal identifies this as a significant concern because ERPNext is typically deployed as an internet-facing application to support remote business operations. If your instance is reachable over the public internet, it increases the opportunity for an unauthorized user to reach the upload interface. You should evaluate whether your specific deployment is exposed to the public web or restricted to internal network users only.

What should I do if I run this software?

Prioritize identifying all active instances of ERPNext and Frappe Framework within your environment to confirm if you are running the affected versions. Once identified, assess the business criticality of those specific systems. Coordinate with the teams responsible for your application infrastructure to review current configurations and track guidance from the vendor for necessary updates or security hardening steps to prevent unauthorized file uploads.

References