CVE catalog

CVE-2026-19872

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 inter

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Updated
Source
[NVD] · [CVE record]
EPSS
0.33% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibhtml-formhandler-perlsid0.410002-1fixed
Debianlibhtml-formhandler-perlforky0.410002-1fixed
Debianlibhtml-formhandler-perltrixie0.40068-2vulnerable
Debianlibhtml-formhandler-perlbookworm0.40068-2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibhtml-formhandler-perlsourcesid0.410002-1not yet assignedNot reported[1147198]
Debianlibhtml-formhandler-perlsourceforky0.410002-1not yet assignedNot reported[1147198]
Debianlibhtml-formhandler-perlsourcetrixie(unfixed)not yet assignedNot reported[1147198]
Debianlibhtml-formhandler-perlsourcebookworm(unfixed)not yet assignedNot reported[1147198]

[Debian bug #1147198]

Notes

[trixie] libhtml-formhandler-perl: Minor issue [bookworm] libhtml-formhandler-perl: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 0.40068-2 · all · bookworm

      Affected

      nvd · libhtml-formhandler-perl · debian · bookworm; nvd · libhtml-formhandler-perl · debian · 12

    • 0.40068-2 · all · bookworm

      Affected

      nvd · libhtml-formhandler-perl · debian · bookworm; nvd · libhtml-formhandler-perl · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 0.40068-2 · all · trixie

      Affected

      nvd · libhtml-formhandler-perl · debian · 13

    • 0.40068-2 · all · trixie

      Affected

      nvd · libhtml-formhandler-perl · debian · 13

Observed:

References