https://bugzilla.redhat.com/show_bug.cgi?id=2533273

            Bug ID: 2533273
           Summary: CVE-2026-19872 perl-HTML-FormHandler:
                    HTML::FormHandler: Cross-site scripting via unescaped
                    error messages [fedora-all]
           Product: Fedora
           Version: rawhide
            Status: NEW
        Whiteboard: {"flaws": ["2676ed70-77c5-42e8-9f28-a33747bb106d"]}
         Component: perl-HTML-FormHandler
          Keywords: Security, SecurityTracking
          Severity: medium
          Priority: medium
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
            Blocks: 2530105 (CVE-2026-19872)
  Target Milestone: ---
    Classification: Fedora



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.



Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=2530105
[Bug 2530105] CVE-2026-19872 perl-HTML-FormHandler: HTML::FormHandler:
Cross-site scripting via unescaped error messages
-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2533273

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202533273%23c0

-- 
_______________________________________________
perl-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to