CVE-2026-120212

Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output

Published Nov 10, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
Description
Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output.

HTML::Tags and XML::Tags escape a plain string value by replacing only &, ", < and > with entities. A value interpolated into a single-quoted attribute, as in <a href='$value'>, can therefore close the attribute and add new ones, such as an event handler. Double-quoted attributes are not affected.

An attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page.

Analysis

AI-generated

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.

Remediation

Vendor Solution

Upgrade to Web-Simple 0.037 or later.


Vendor Workaround

Use double-quoted attributes for values that may contain untrusted data.


OpenCVE Recommended Actions

  • Upgrade Web::Simple to version 0.037 or later.
  • Modify all templates to use double‑quoted attributes for values that may contain untrusted data.
  • Audit application code for remaining single‑quoted attributes that include user‑controlled content and apply proper escaping or sanitization as needed.

Generated by OpenCVE AI on November 16, 2026 at 19:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output. HTML::Tags and XML::Tags escape a plain string value by replacing only &, ", < and > with entities. A value interpolated into a single-quoted attribute, as in <a href='$value'>, can therefore close the attribute and add new ones, such as an event handler. Double-quoted attributes are not affected. An attacker who controls a value that an application interpolates into a single-quoted attribute can inject script into the generated page.
Title Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output
Weaknesses CWE-79
References

Subscriptions

No data.

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
CPANSec
Published
Updated
Nov 16, 2026, 5:17 PM
Reserved
Oct 31, 2026, 1:26 PM
Status
Deferred
Published
Nov 10, 2026, 6:17 PM
Modified
Nov 16, 2026, 6:17 PM