Description
Web::Simple versions before 0.036 for Perl do not escape values interpolated into double-quoted strings in HTML::Tags output.
Under use HTML::Tags or use XML::Tags, a double-quoted string literal becomes a StringThing object that holds each interpolated value as a separate part. The escaping step passes such objects through, and stringify joins their interpolated parts as is. A value passed on its own, as in <p>, $value, </p>, is entity-escaped, but the same value in "Hello $value" is not.
An attacker who controls a value that an application interpolates into a double-quoted string can inject script into the generated page.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | Web-Simple | < 0.036 | 0.036 |
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 | 0.036-1 | — |
| 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 | — |