CVE-2026-42840

Source
https://cve.org/CVERecord?id=CVE-2026-42840
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42840.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42840
Published
2026-06-03T17:35:04.126Z
Modified
2026-07-15T01:49:15.020728271Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
ERPNext 16.16.0 - Stored XSS in POS customer section via unescaped template literals
Details

An authenticated user can persist arbitrary HTML/JavaScript in the emailid or mobileno 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.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42840.json",
    "cna_assigner": "Fluid Attacks"
}
References

Affected packages

Git / github.com/frappe/erpnext

Affected ranges

Type
GIT
Repo
https://github.com/frappe/erpnext
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "16.16.0"
        },
        {
            "last_affected": "16.16.0"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

16.*
16.16.0
v16.*
v16.16.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42840.json"