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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Web-Simple | < 0.037 | 0.037 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libweb-simple-perl | No fix yet | — |
| Debian 13 | libweb-simple-perl | No fix yet | — |
| Debian 12 | libweb-simple-perl | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libweb-simple-perl | No fix yet | — |
| Ubuntu 26.04 LTS | libweb-simple-perl | No fix yet | — |
| Ubuntu 24.04 LTS | libweb-simple-perl | No fix yet | — |
| Ubuntu 22.04 LTS | libweb-simple-perl | No fix yet | — |
| Ubuntu 20.04 LTS | libweb-simple-perl | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libweb-simple-perl | No fix yet | — |
| Ubuntu 16.04 LTS | libweb-simple-perl | No fix yet | — |