CVE-2026-120212
Web::Simple versions before 0.037 for Perl do not escape single quotes in HTML::Tags output.
Impact
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.
An attacker can exploit this over the network, with a regular user account, but a user has to do something, such as open a file or a link. If it succeeds: low risk of data being read, low risk of data or systems being changed. The attack can reach beyond the vulnerable component itself.
Affected products
| Product | Affected versions |
|---|---|
| Web::Simple | before 0.037 |
Versions were read from the advisory text. No structured product data has been published for this record yet.
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/p5sagit/Web-Simple/commit/de0b7743f7015ec2c1c678dfdaa4bc6f5ccfb640.patch
- https://metacpan.org/release/ETHER/Web-Simple-0.037/changes
- https://www.cve.org/CVERecord?id=CVE-2026-5090
- https://github.com/advisories/GHSA-3xh6-x477-72h3
- https://nvd.nist.gov/vuln/detail/CVE-2026-120212