Vulnerability · Published Jun 3, 2026 · Assigned by Fluid Attacks

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

Medium 5.1

In plain English

A medium-severity cross-site scripting in ERPNext from Frappe. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 16% of all known vulnerabilities).

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.2%top 84.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected products (as reported)

VendorProductVersions
Frappe ERPNext 16.16.0

Weakness: CWE-79 · 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

References