CVE-2020-13959: Cross-site scripting (XSS) in Apache Velocity Tools

Summary

12/03/2021
Yes i
Moderate
6.1

CVE-2020-13959: Cross-site scripting (XSS) in Apache Velocity Tools. Affects org.apache.velocity.tools:velocity-tools-parent versions < 3.1. Fixed in 3.1. How to fix ↓

Also tracked for

The same CVE-2020-13959 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Apache Velocity Tools is a collection of Java libraries and tools for the Apache Velocity Template Engine. It provides additional functionality and utilities to enhance the capabilities of Velocity. The vulnerability in question affects the VelocityView component of Apache Velocity Tools. VelocityView is responsible for rendering Velocity templates and handling errors. This vulnerability allows for cross-site scripting (XSS) attacks, which can lead to the execution of arbitrary JavaScript code in the context of the targeted website and user. This can result in the theft of session cookies, unauthorized requests, and phishing attacks.

Vulnerability Detail

The default error page for VelocityView in Apache Velocity Tools prior to version 3.1 reflects back the vm file that was entered as part of the URL. An attacker can exploit this by setting an XSS payload file as the vm file in the URL, causing the payload to be executed. This vulnerability is categorized as CWE-79, which is a weakness related to improper neutralization of input during web page generation. The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.1.

How To Fix

Minimum fixed version

3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the fix by upgrading to the patched version of Apache Velocity Tools.

Conclusion

The XSS vulnerability in Apache Velocity Tools can have serious consequences, allowing attackers to execute arbitrary JavaScript code in the context of the targeted website and user. To mitigate this risk, it is crucial to upgrade to Apache Velocity Tools version 3.1 or later. By doing so, you can ensure that your application is protected against this vulnerability. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.velocity.tools:velocity-tools-parent →

Share this vulnerability

FAQ

Apache Velocity Tools is a collection of Java libraries and tools that enhance the functionality of the Apache Velocity Template Engine.

This vulnerability allows for cross-site scripting (XSS) attacks, which can lead to the execution of arbitrary JavaScript code in the context of the targeted website and user. This can result in the theft of session cookies, unauthorized requests, and phishing attacks.

The severity of this vulnerability is rated as MODERATE with a CVSS score of 6.1.

To fix this vulnerability, it is recommended to upgrade to Apache Velocity Tools version 3.1 or later. Update your project's dependencies to use the latest version of org.apache.velocity.tools:velocity-tools-parent or org.apache.velocity:velocity-tools.

There is no known workaround for this vulnerability. It is essential to apply the fix by upgrading to the patched version of Apache Velocity Tools.

How To Fix

Minimum fixed version

3.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback