CVE-2026-120212

NameCVE-2026-120212
DescriptionWeb::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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1153680

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libweb-simple-perl (PTS)bookworm, trixie0.033-2vulnerable
forky, sid0.037-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libweb-simple-perlsource(unstable)0.037-11153680

Notes

[trixie] - libweb-simple-perl <no-dsa> (Minor issue)
[bookworm] - libweb-simple-perl <postponed> (Minor issue)
https://lists.security.metacpan.org/cve-announce/msg/45042131/
Fixed by: https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640 (v0.037)

Search for package or bug name: Reporting problems