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 n/a 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.

Remediation

Vendor Solution

Upgrade to Web-Simple 0.037 or later.


Vendor Workaround

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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

Sources

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