CVE-2026-5090: CWE-79 Improper Neutralization of Input During Web Page Generation in TODDR Template::Plugin::HTML
Template::Plugin::HTML versions through 3.102 for Perl allows HTML and JavaScript to be injected. The html_filter function did not escape single quotes. HTML attributes inside of single quotes could be have code injected. For example, the variable "var" in <a id='ref' title='[% var | html %]'> would not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example, var = " ' onclick='while (true) { alert(1) }'" Note that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.
AI Analysis
Technical Summary
Template::Plugin::HTML versions through 3.102 for Perl contain an input neutralization flaw (CWE-79) in the html_filter function. This function fails to escape single quotes, enabling injection of limited HTML and JavaScript code into single-quoted HTML attributes. For example, an attacker can craft a variable value that injects an event handler attribute, leading to potential script execution. The vulnerability is constrained by the escaping of angle brackets, ampersands, and double quotes, limiting the scope of injection. The CVSS 3.1 base score is 6.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and partial impact on confidentiality and integrity.
Potential Impact
An attacker can inject limited HTML and JavaScript code into web pages generated using the vulnerable Template::Plugin::HTML module, potentially leading to cross-site scripting (XSS) attacks. This could allow execution of arbitrary scripts in the context of the affected web application, impacting confidentiality and integrity of user data. However, the injection is limited due to escaping of certain characters, reducing the severity compared to full XSS vulnerabilities. No known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance is currently available from the vendor. Users should monitor the vendor advisory for updates. Until a patch is released, avoid using untrusted input within single-quoted HTML attributes processed by the html_filter function or apply custom escaping to single quotes to mitigate injection risk.
CVE-2026-5090: CWE-79 Improper Neutralization of Input During Web Page Generation in TODDR Template::Plugin::HTML
Description
Template::Plugin::HTML versions through 3.102 for Perl allows HTML and JavaScript to be injected. The html_filter function did not escape single quotes. HTML attributes inside of single quotes could be have code injected. For example, the variable "var" in <a id='ref' title='[% var | html %]'> would not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example, var = " ' onclick='while (true) { alert(1) }'" Note that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.
CVSS v3.1
Score 6.1medium
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Template::Plugin::HTML versions through 3.102 for Perl contain an input neutralization flaw (CWE-79) in the html_filter function. This function fails to escape single quotes, enabling injection of limited HTML and JavaScript code into single-quoted HTML attributes. For example, an attacker can craft a variable value that injects an event handler attribute, leading to potential script execution. The vulnerability is constrained by the escaping of angle brackets, ampersands, and double quotes, limiting the scope of injection. The CVSS 3.1 base score is 6.1 (medium severity), reflecting network attack vector, low complexity, no privileges required, user interaction needed, and partial impact on confidentiality and integrity.
Potential Impact
An attacker can inject limited HTML and JavaScript code into web pages generated using the vulnerable Template::Plugin::HTML module, potentially leading to cross-site scripting (XSS) attacks. This could allow execution of arbitrary scripts in the context of the affected web application, impacting confidentiality and integrity of user data. However, the injection is limited due to escaping of certain characters, reducing the severity compared to full XSS vulnerabilities. No known exploits have been reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — no official fix or remediation guidance is currently available from the vendor. Users should monitor the vendor advisory for updates. Until a patch is released, avoid using untrusted input within single-quoted HTML attributes processed by the html_filter function or apply custom escaping to single quotes to mitigate injection risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- CPANSec
- Date Reserved
- 2026-03-28T19:35:11.737Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0cde35ba1db47362f22f4e
Added to database: 05/19/2026, 22:03:33 UTC
Last enriched: 05/27/2026, 20:53:37 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 104
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.