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-2020-13959

CVE-2020-13959: Apache Velocity Tools XSS Vulnerability

CVE-2020-13959 is a cross-site scripting vulnerability in Apache Velocity Tools that allows attackers to execute malicious JavaScript via URL injection. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-13959 Overview

CVE-2020-13959 is a reflected Cross-Site Scripting (XSS) vulnerability affecting the default error page for VelocityView in Apache Velocity Tools prior to version 3.1. The vulnerability occurs because the error page reflects back the vm file parameter from the URL without proper sanitization. An attacker can craft a malicious URL containing an XSS payload as the vm file parameter, which then gets executed in the context of the victim's browser session when the error page is rendered.

XSS vulnerabilities of this nature allow attackers to execute arbitrary JavaScript code within the security context of the affected website and the victim's browser session. This can be leveraged to steal session cookies, perform unauthorized actions on behalf of the victim, conduct phishing attacks, or redirect users to malicious websites.

Critical Impact

Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, performing unauthorized actions, or conducting phishing attacks against users of applications built with vulnerable Apache Velocity Tools.

Affected Products

  • Apache Velocity Tools versions prior to 3.1
  • Debian Linux 9.0
  • Applications using VelocityView with the default error page configuration

Discovery Timeline

  • 2021-03-10 - CVE-2020-13959 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-13959

Vulnerability Analysis

This vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), commonly known as Cross-Site Scripting. The root cause lies in how VelocityView's default error page handles user-supplied input from URL parameters.

When a VelocityView application encounters an error, it displays an error page that includes the name of the requested vm (Velocity template) file. The vulnerability exists because this vm file name is extracted directly from the URL and reflected back into the HTML response without proper output encoding or sanitization. This creates a classic reflected XSS attack vector where malicious scripts embedded in the URL parameter are executed by the victim's browser.

The attack requires user interaction, as victims must click on a crafted malicious link for the payload to execute. However, once triggered, the JavaScript runs with full access to the domain's cookies, DOM, and other client-side resources.

Root Cause

The root cause is insufficient input validation and output encoding in the VelocityView error page rendering logic. When the error page reflects the vm file parameter back to the user, it fails to properly escape HTML special characters, allowing embedded script tags or JavaScript event handlers to be interpreted as executable code by the browser.

Attack Vector

The attack is network-based and requires no prior authentication or privileges. An attacker crafts a malicious URL targeting a vulnerable application and distributes it through phishing emails, social engineering, or by embedding it on other websites. When a victim clicks the link, their browser sends a request to the vulnerable application with the XSS payload embedded in the URL. The server responds with an error page that includes the unescaped payload, which the browser then executes.

A typical attack URL would include JavaScript code as the vm file parameter, such as script tags or event handlers that trigger when the error page renders. The payload could exfiltrate session tokens via external requests, modify page content for phishing purposes, or perform actions using the victim's authenticated session.

Detection Methods for CVE-2020-13959

Indicators of Compromise

  • Unusual URL patterns in web server logs containing JavaScript code or HTML tags in the vm file parameter
  • Error page requests with encoded or obfuscated script payloads in query strings
  • Outbound requests from client browsers to suspicious external domains following error page access
  • User reports of unexpected browser behavior after clicking links to your application

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block requests containing script tags or event handlers in URL parameters
  • Configure intrusion detection systems to alert on URL patterns matching known XSS payload signatures
  • Enable detailed access logging to capture full request URLs for forensic analysis
  • Deploy content security policy (CSP) headers to mitigate the impact of successful XSS attacks

Monitoring Recommendations

  • Monitor web server access logs for requests to error pages with unusually long or encoded URL parameters
  • Set up alerts for error rate spikes that could indicate exploitation attempts
  • Track CSP violation reports to detect blocked XSS attempts
  • Review application logs for patterns indicating automated scanning or exploitation

How to Mitigate CVE-2020-13959

Immediate Actions Required

  • Upgrade Apache Velocity Tools to version 3.1 or later immediately
  • Implement a custom error page that does not reflect user input without proper encoding
  • Deploy Content Security Policy headers to restrict inline script execution
  • Review and update WAF rules to block XSS payloads in URL parameters

Patch Information

Apache has addressed this vulnerability in Velocity Tools version 3.1. Organizations should upgrade to this version or later to receive the fix. Detailed information about the security update is available through the Apache Velocity User Thread and the Apache Velocity Announce Thread.

Debian users running version 9.0 should consult the Debian LTS Announcement for package updates. Gentoo users can reference the Gentoo GLSA 2021-07-52 advisory for patching guidance.

Workarounds

  • Implement a custom error handler that sanitizes all reflected input using proper HTML encoding
  • Configure web application firewall rules to strip or block suspicious characters in the vm file parameter
  • Deploy strict Content Security Policy headers with script-src 'self' to prevent inline script execution
  • Consider disabling the default error page and implementing a static error response that does not reflect any request parameters
bash
# Example: Add Content Security Policy header in Apache configuration
# Add to httpd.conf or .htaccess
Header set Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'"

# Enable mod_headers if not already enabled
a2enmod headers
systemctl restart apache2

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechApache

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability3.21%

  • 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
  • Openwall OSS Security List

  • Apache Velocity User Thread

  • Apache Velocity Commits Thread

  • Apache Velocity Announce Thread

  • Debian LTS Announcement

  • Gentoo GLSA 2021-07-52
  • Vendor Resources
  • Apache Velocity User Thread
  • Related CVEs
  • CVE-2026-41018: Airflow Elasticsearch Info Disclosure Flaw

  • CVE-2026-43826: Apache Airflow OpenSearch Info Leak

  • CVE-2026-28780: Apache HTTP Server Buffer Overflow Flaw

  • CVE-2026-5081: Perl Apache::Session Info Disclosure Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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