CVE-2026-19872: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
HTML::FormHandler versions before 0.410000 for Perl contain a cross-site scripting (XSS) vulnerability. This occurs because error messages render submitted values without proper escaping, allowing malicious HTML or script code to be executed in the victim's browser. The vulnerability affects fields with certain validations like regexp checks, check lists, or type constraints when using the library's default error rendering. Applications that use their own escaping template layers for error rendering are not affected.
AI Analysis
Technical Summary
The vulnerability in HTML::FormHandler prior to version 0.410000 arises from improper neutralization of input during web page generation (CWE-79). Specifically, the library's wrappers and renderers interpolate error strings directly into HTML without escaping. Certain error messages (no_match, not_allowed) include the submitted value unescaped, and type constraint failures embed the rejected value in error messages. This allows an attacker to submit malicious markup that is reflected in error messages, leading to cross-site scripting. The issue affects default rendering roles but not applications that apply their own escaping templates.
Potential Impact
An attacker can submit crafted input containing malicious HTML or JavaScript to a vulnerable form field. Because the error messages render this input unescaped, the malicious code executes in the context of the victim's browser origin. This can lead to session hijacking, defacement, or other client-side attacks. The vulnerability also affects stored variants if rejected values are re-rendered later, potentially enabling persistent XSS.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, applications using HTML::FormHandler should avoid relying on the library's default error rendering roles for displaying error messages containing user input. Using custom escaping template layers for error rendering prevents this vulnerability. Monitor vendor channels for an official fix or update to version 0.410000 or later once available.
CVE-2026-19872: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Description
HTML::FormHandler versions before 0.410000 for Perl contain a cross-site scripting (XSS) vulnerability. This occurs because error messages render submitted values without proper escaping, allowing malicious HTML or script code to be executed in the victim's browser. The vulnerability affects fields with certain validations like regexp checks, check lists, or type constraints when using the library's default error rendering. Applications that use their own escaping template layers for error rendering are not affected.
Affected software
pkg:github/HTML-FormHandlerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in HTML::FormHandler prior to version 0.410000 arises from improper neutralization of input during web page generation (CWE-79). Specifically, the library's wrappers and renderers interpolate error strings directly into HTML without escaping. Certain error messages (no_match, not_allowed) include the submitted value unescaped, and type constraint failures embed the rejected value in error messages. This allows an attacker to submit malicious markup that is reflected in error messages, leading to cross-site scripting. The issue affects default rendering roles but not applications that apply their own escaping templates.
Potential Impact
An attacker can submit crafted input containing malicious HTML or JavaScript to a vulnerable form field. Because the error messages render this input unescaped, the malicious code executes in the context of the victim's browser origin. This can lead to session hijacking, defacement, or other client-side attacks. The vulnerability also affects stored variants if rejected values are re-rendered later, potentially enabling persistent XSS.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. In the meantime, applications using HTML::FormHandler should avoid relying on the library's default error rendering roles for displaying error messages containing user input. Using custom escaping template layers for error rendering prevents this vulnerability. Monitor vendor channels for an official fix or update to version 0.410000 or later once available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-08-14T12:49:19.665Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6aa06e9bacd9273b492e1344
Added to database: 09/08/2026, 20:22:51 UTC
Last enriched: 09/08/2026, 20:38:50 UTC
Last updated: 09/08/2026, 20:38:50 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.