CVE-2020-13959: Cross-site scripting (XSS) in Apache Velocity Tools
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.88774%
CWE
Published
3/12/2021
Updated
2/1/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.apache.velocity.tools:velocity-tools-parent | maven | < 3.1 | 3.1 |
org.apache.velocity:velocity-tools | maven | <= 2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unescaped reflection of the 'path' parameter in error pages. The critical code change occurs in VelocityViewServlet.error()
method where the vulnerable version directly appended the raw path value to HTML output. The patch adds HTML escaping at this specific location. During exploitation, this method would appear in stack traces when processing invalid template requests containing XSS payloads in the path parameter.