Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted XSS payload to validated form field
-
DeliveryField fails regexp/type constraint
-
ExploitLibrary embeds raw value in no_match/type-error message
-
ExecutionRendering role outputs error string unescaped into HTML span
-
PersistVictim browser loads error response
-
ImpactInjected 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Network form submission requires no auth (PR:N); victim page load required (UI:R); XSS crosses browser security boundary (S:C); no availability impact.
Primary rating from Vendor (9b29abf9-4ab0-4765-b253-1875cd9b441e).
CVSS VectorVendor: 9b29abf9-4ab0-4765-b253-1875cd9b441e
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Moderate| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-74166
GHSA-74pj-vp7j-2f6m
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB