CVE-2026-19872HTML::FormHandler versions before 0.410000 for Perl allow cross-site scripting via a…
HTML::FormHandler versions before 0.410000 for Perl allow cross-site scripting via a submitted value rendered unescaped in an error message. The wrappers and renderers that emit a form's errors interpolate the error string straight into HTML with no escaping. Two of the library's own messages, no_match and not_allowed, splice the submitted value into that string, and a failing type constraint puts the rejected value into the message it builds, which _apply_actions hands to add_error. A field declared with a check regexp, a check list or a type constraint reaches those messages, with no custom validator and no non-default configuration. Errors rendered through an application's own escaping template layer rather than the library's rendering roles are not affected. A request over the network that submits markup to such a field gets it back live inside the error span, running script in the victim's origin. Re-rendering a rejected value later gives the stored variant.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libhtml-formhandler-perl | Fix pending | UBUNTU-CVE-2026-19872 | |
| Ubuntu 26.04 | libhtml-formhandler-perl | Under investigation | UBUNTU-CVE-2026-19872 | |
| Ubuntu 24.04 | libhtml-formhandler-perl | Under investigation | UBUNTU-CVE-2026-19872 | |
| Ubuntu 22.04 | libhtml-formhandler-perl | Under investigation | UBUNTU-CVE-2026-19872 | |
| Ubuntu 20.04 | libhtml-formhandler-perl | Fix pending | UBUNTU-CVE-2026-19872 | |
| Ubuntu 18.04 | libhtml-formhandler-perl | Fix pending | UBUNTU-CVE-2026-19872 | |
| Ubuntu 16.04 | libhtml-formhandler-perl | Fix pending | UBUNTU-CVE-2026-19872 | |
| Debian 14 | libhtml-formhandler-perl | Fixed | 0.410002-1 | DEBIAN-CVE-2026-19872 |
| Debian 13 | libhtml-formhandler-perl | Fix pending | DEBIAN-CVE-2026-19872 | |
| Debian 12 | libhtml-formhandler-perl | Fix pending | DEBIAN-CVE-2026-19872 |
What the vendor says
As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- HTML-FormHandler: affected: before 0.410000; fixed in
0.410000
Solution: Upgrade to HTML-FormHandler 0.410000 or later.
Vendor advisories:
- https://github.com/gshank/html-formhandler/commit/2574fdb4561f5c32d44cfbfbb3188345d49eb5a… (patch)
- https://metacpan.org/release/ABRAXXA/HTML-FormHandler-0.410000/changes (release-notes)
References
- https://github.com/gshank/html-formhandler/commit/2574fdb4561f5c32d44cfbfbb3188345d49eb5a2.patch
- https://metacpan.org/release/ABRAXXA/HTML-FormHandler-0.410000/changes
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.