CVEfocus › CVE database › CVE-2026-19872

CVE-2026-19872HTML::FormHandler versions before 0.410000 for Perl allow cross-site scripting via a…

CVSS 6.1 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2026-09-08Updated 2026-09-10Assigner: CPANSec

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.

CWE-79

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

1Fixed
6Fix pending
3Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libhtml-formhandler-perlFix pendingUBUNTU-CVE-2026-19872
Ubuntu 26.04libhtml-formhandler-perlUnder investigationUBUNTU-CVE-2026-19872
Ubuntu 24.04libhtml-formhandler-perlUnder investigationUBUNTU-CVE-2026-19872
Ubuntu 22.04libhtml-formhandler-perlUnder investigationUBUNTU-CVE-2026-19872
Ubuntu 20.04libhtml-formhandler-perlFix pendingUBUNTU-CVE-2026-19872
Ubuntu 18.04libhtml-formhandler-perlFix pendingUBUNTU-CVE-2026-19872
Ubuntu 16.04libhtml-formhandler-perlFix pendingUBUNTU-CVE-2026-19872
Debian 14libhtml-formhandler-perlFixed0.410002-1DEBIAN-CVE-2026-19872
Debian 13libhtml-formhandler-perlFix pendingDEBIAN-CVE-2026-19872
Debian 12libhtml-formhandler-perlFix pendingDEBIAN-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.

Solution: Upgrade to HTML-FormHandler 0.410000 or later.

Vendor advisories:

References

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.