The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5090

CVE-2026-5090: Template::Plugin::HTML XSS Vulnerability

CVE-2026-5090 is a cross-site scripting flaw in Template::Plugin::HTML for Perl that allows injection of HTML and JavaScript through unescaped single quotes. This article covers the technical details, affected versions, and mitigation.

Published: May 21, 2026

CVE-2026-5090 Overview

CVE-2026-5090 is a cross-site scripting (XSS) vulnerability in the Perl module Template::Plugin::HTML versions through 3.102. The html_filter function fails to escape single quote characters when encoding output. Applications using the html filter to sanitize variables placed inside single-quoted HTML attributes remain vulnerable to attribute-context injection. An attacker who controls a filtered value can break out of the attribute and inject event handlers such as onclick, leading to arbitrary JavaScript execution in the victim's browser. The flaw is tracked under CWE-79: Improper Neutralization of Input During Web Page Generation.

Critical Impact

Attackers can inject limited HTML and JavaScript through single-quoted attribute contexts, enabling session hijacking, credential theft, or arbitrary actions performed as the targeted user.

Affected Products

  • Template::Plugin::HTML for Perl, versions through 3.102
  • Perl applications using the Template Toolkit html filter to sanitize values placed inside single-quoted HTML attributes
  • Downstream Perl web applications and frameworks that depend on Template Toolkit for output encoding

Discovery Timeline

  • 2026-05-19 - CVE-2026-5090 published to the National Vulnerability Database
  • 2026-05-19 - Public disclosure on the Openwall oss-security mailing list
  • 2026-05-20 - Last updated in NVD database

Technical Details for CVE-2026-5090

Vulnerability Analysis

The vulnerability stems from incomplete output encoding in the html_filter function shipped with Template::Plugin::HTML. The filter escapes <, >, &, and double quotes, but does not escape single quotes. Developers commonly rely on the | html filter as a general-purpose XSS defense across template contexts. When a filtered value is rendered inside a single-quoted attribute, an attacker-controlled string containing a single quote can terminate the attribute and append new attributes such as event handlers.

The disclosure provides a representative template fragment: <a id='ref' title='[% var | html %]'>. Supplying var = " ' onclick='while (true) { alert(1) }'" closes the title attribute and injects an onclick handler. Arbitrary HTML injection is constrained because <, >, and & remain encoded, but JavaScript execution through inline event handlers is achievable.

Root Cause

The root cause is an incomplete character escape list in html_filter. HTML attribute values delimited by single quotes require the apostrophe (' or its numeric reference ') to be encoded. Because the function omits this character, the encoded output remains unsafe in single-quoted attribute contexts, violating the contract developers expect from a generic HTML escaper.

Attack Vector

Exploitation requires an attacker to influence a value that is rendered inside a single-quoted HTML attribute through the html filter, and to convince a victim to load the resulting page. The injection payload terminates the attribute with ', appends an event handler such as onclick or onmouseover, and executes JavaScript when the victim interacts with the element. Because the scope changes from the template engine to the user's browser, the issue carries a scope-changed impact in the CVSS vector.

See the GitHub issue discussion and the upstream pull request for the exact code paths and proposed fix.

Detection Methods for CVE-2026-5090

Indicators of Compromise

  • Web server access logs containing URL-encoded single quotes (%27) followed by onclick, onerror, onmouseover, or other event handler names in request parameters
  • Rendered HTML responses where user-supplied data inside single-quoted attributes contains unescaped ' characters
  • Browser-side errors or unexpected JavaScript executions originating from template-rendered attributes such as title, alt, or data-*

Detection Strategies

  • Audit Perl codebases for installed versions of Template::Plugin::HTML at or below 3.102 using cpan -D Template::Plugin::HTML or dependency manifests
  • Grep templates for single-quoted attribute patterns combined with the html filter, for example ='[% ... | html %]', and flag them for review
  • Add automated XSS payload tests injecting ' onclick='alert(1) into form fields and URL parameters in staging environments

Monitoring Recommendations

  • Enable Content Security Policy (CSP) reporting endpoints to capture violations from injected inline event handlers
  • Forward web application firewall (WAF) and reverse proxy logs to a centralized analytics platform and alert on suspicious attribute-breakout patterns
  • Monitor CPAN module update channels and the Openwall oss-security archive for patched releases and related advisories

How to Mitigate CVE-2026-5090

Immediate Actions Required

  • Upgrade Template::Plugin::HTML to a release later than 3.102 once available from CPAN, or apply the upstream patch referenced in the Template2 pull request
  • Convert single-quoted attributes in templates to double-quoted attributes, which the existing filter encodes correctly
  • Deploy a Content Security Policy that blocks inline event handlers and inline scripts to limit exploitation impact

Patch Information

The upstream Template Toolkit maintainers tracked the fix in GitHub issue #327 and merged the change through pull request #337. The fix adds the single-quote character to the escape list inside html_filter. Verify that the deployed version of Template::Plugin::HTML includes the updated escape table before redeploying affected applications.

Workarounds

  • Replace | html with a stricter filter such as | uri or a custom encoder that emits ' for single quotes when rendering inside single-quoted attributes
  • Refactor templates so untrusted values appear only inside double-quoted attributes or inside text nodes
  • Reject or strip single-quote characters from input fields that flow into attribute contexts, where business logic permits

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechTemplate Plugin Html

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Issue Discussion

  • GitHub Pull Request Changes

  • Openwall OSS Security Update
  • Latest CVEs
  • CVE-2025-30386: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-59234: Microsoft 365 Apps Use After Free Flaw

  • CVE-2025-49702: Microsoft 365 Apps RCE Vulnerability

  • CVE-2025-59227: Microsoft 365 Apps Use-After-Free RCE
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English