Cross-site scripting in ERPNext - #VU163065
Published: November 9, 2026
Vulnerability details
The vulnerability allows an authenticated attacker with the Sales User role to execute scripts in another user's session and act with that user's permissions.
The vulnerability exists due to missing HTML sanitization when saving notes on Leads and Opportunities in ERPNext's CRM module. An authenticated attacker with the Sales User role can save a crafted note whose payload executes when another user opens the record.