Bug 2533273 - CVE-2026-19872 perl-HTML-FormHandler: HTML::FormHandler: Cross-site scripting via unescaped error messages [fedora-all]
Summary: CVE-2026-19872 perl-HTML-FormHandler: HTML::FormHandler: Cross-site scripting...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-HTML-FormHandler
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Emmanuel Seyman
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["2676ed70-77c5-42e8-9f28-a...
Depends On:
Blocks: CVE-2026-19872
TreeView+ depends on / blocked
 
Reported: 2026-09-14 18:18 UTC by Vladimir Vasilev
Modified: 2026-09-22 00:53 UTC (History)
2 users (show)

Fixed In Version: perl-HTML-FormHandler-0.410002-1.fc44
Clone Of:
Environment:
Last Closed: 2026-09-22 00:53:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vladimir Vasilev 2026-09-14 18:18:02 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Fedora Update System 2026-09-14 19:39:55 UTC
FEDORA-2026-21850d7df0 (perl-HTML-FormHandler-0.410002-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-21850d7df0

Comment 2 Fedora Update System 2026-09-22 00:53:55 UTC
FEDORA-2026-21850d7df0 (perl-HTML-FormHandler-0.410002-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.