title: ERPNext - Stored XSS in My Profile
description: In ERPNext, versions v12.0.9--v13.0.3 are vulnerable to Stored Cross-Site-Scripting (XSS), due to user input not being validated properly. A low privileged attacker could inject arbitrary code into input fields when editing his profile.
problem types: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
affected:
{
product: frappe
vendor: frappe
versions:
lessThan: unspecified, status: affected, version: v12.0.9, versionType: custom
lessThanOrEqual: v13.0.3, status: affected, version: unspecified, versionType: custom
}
metrics:
other: [
content: {'attackComplexity': 'LOW', 'attackVector': 'NETWORK', 'availabilityImpact': 'NONE', 'baseScore': 5.4, 'baseSeverity': 'MEDIUM', 'confidentialityImpact': 'LOW', 'integrityImpact': 'LOW', 'privilegesRequired': 'NONE', 'scope': 'UNCHANGED', 'userInteraction': 'REQUIRED', 'vectorString': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N', 'version': 3.1}
type: unknown
]
solutions: Update version to v13.1.0 or later