CVE-2026-42840 MEDIUM

CVE-2026-42840: ERPNext 16.16.0 - Stored XSS in POS customer section via unescaped template literals

Vendor Frappe
Product ERPNext
Weakness CWE-79 · XSS
Published June 3, 2026
Last update June 3, 2026

CVSS base score

5.1/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction
Confidentiality
Integrity

CVSS vector

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

What the vulnerability does

01Description

An authenticated user can persist arbitrary HTML/JavaScript in the email_id or mobile_no fields of a Customer record and trigger unescaped rendering in the Point of Sale (POS) interface for every operator who selects that customer. This issue affects ERPNext: 16.16.0.

Key dates

02Disclosure timeline

June 3, 2026 CVE published
June 3, 2026 Record updated