Technical impact
Web::Simple before version 0.037 fails to escape single quotes in output generated by HTML::Tags. When an attacker controls a value that is interpolated into a single‑quoted attribute, the value can close the attribute and inject additional attributes, including event handlers that execute JavaScript. The vulnerability allows arbitrary client‑side script injection, which can lead to session hijacking, defacement, or data theft in the victim’s browser. This issue is classified as CWE‑79, the standard category for cross‑site scripting defects.
Affected Systems
Any Perl application that uses Web::Simple earlier than 0.037 is vulnerable. The problem exists in the general Web::Simple library used by any project that renders HTML via the library’s templates. Corrected versions start with 0.037 and later.
Risk and Exploitability
The CVSS score of 5.4 indicates a medium severity. The EPSS score indicates a very low probability of exploitation in the wild, and this vulnerability is not listed in the CISA KEV catalog. Nevertheless, because it is an XSS flaw, a determined attacker can leverage it when they can inject untrusted data into a page rendered by Web::Simple. The likely attack vector is via web input that passes through the library without additional escaping or sanitization. No server‑side code execution or privilege escalation is possible, but the impact on confidentiality, integrity, and availability of the victim’s browser session is significant.