CVE-2026-42840: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Frappe ERPNext
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.
AI Analysis
Technical Summary
This vulnerability (CWE-79) in ERPNext 16.16.0 allows an authenticated user to persist arbitrary HTML/JavaScript code in the email_id or mobile_no fields of a Customer record. The injected code is not properly neutralized and is rendered unescaped in the POS interface when operators select the affected customer, enabling cross-site scripting attacks. The CVSS 4.0 base score is 5.1, indicating medium severity. No official patch or remediation level has been provided by the vendor as of the published date.
Potential Impact
The vulnerability enables an authenticated user to execute arbitrary scripts in the context of other POS operators viewing the affected customer record. This can lead to potential session hijacking, unauthorized actions, or data exposure within the POS interface. However, exploitation requires authentication and user interaction, limiting the scope and impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict authenticated user permissions to trusted personnel only and avoid using untrusted data in the email_id or mobile_no fields. Monitor vendor communications for updates on patches or official mitigations.
CVE-2026-42840: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in Frappe ERPNext
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.
CVSS v4.0
Score 5.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-79) in ERPNext 16.16.0 allows an authenticated user to persist arbitrary HTML/JavaScript code in the email_id or mobile_no fields of a Customer record. The injected code is not properly neutralized and is rendered unescaped in the POS interface when operators select the affected customer, enabling cross-site scripting attacks. The CVSS 4.0 base score is 5.1, indicating medium severity. No official patch or remediation level has been provided by the vendor as of the published date.
Potential Impact
The vulnerability enables an authenticated user to execute arbitrary scripts in the context of other POS operators viewing the affected customer record. This can lead to potential session hijacking, unauthorized actions, or data exposure within the POS interface. However, exploitation requires authentication and user interaction, limiting the scope and impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, restrict authenticated user permissions to trusted personnel only and avoid using untrusted data in the email_id or mobile_no fields. Monitor vendor communications for updates on patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Fluid Attacks
- Date Reserved
- 2026-04-30T15:23:30.711Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a207a8be29bf47b50dc5162
Added to database: 06/03/2026, 19:03:39 UTC
Last enriched: 06/10/2026, 19:40:17 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 54
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.