A cross-site scripting (XSS) vulnerability exists in SourceCodester Drug Recommendation System 1.0 within the patient.php file's Patient Registration component. The flaw is triggered by manipulation of the txtname argument and can be exploited remotely. Public exploit code is available, increasing the risk of attacks. The vulnerability has a medium severity rating with a CVSS score of 4.3.