ERPNext Stored Cross-Site Scripting Vulnerability in CSV Import Mechanism

Vulnerability

A stored cross-site scripting vulnerability has been identified in ERPNext versions through 15.88.1. This issue arises within the CSV import feature when the 'Update Existing Records' option is selected. An attacker can inject malicious JavaScript into a CSV field, which is then saved in the database. The injected script executes when the affected record is viewed in the ERPNext web interface, potentially compromising user sessions or allowing unauthorized actions on behalf of the user.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the affected record.

Added: Feb 3, 2026, 6:43 PM
Updated: Feb 3, 2026, 6:43 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
1.7
exploitability
5.3
remediation
0.0
relevance
2.5
threat
3.2
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.