OpenEMR versions before 8.3.0 contain a stored cross-site scripting (XSS) vulnerability in the patient portal template import handler. Authenticated users with Forms Administration permissions can upload template files containing arbitrary HTML or JavaScript. These malicious scripts are stored without proper sanitization and execute in the browsers of other Forms Administration users who view the template in the HTML editor. This vulnerability has a medium severity rating with a CVSS score of 5.4.