MODERATE 6.1

CVE-2020-13959

Cross-site scripting (XSS) in Apache Velocity Tools

Description

The default error page for VelocityView in Apache Velocity Tools prior to 3.1 reflects back the vm file that was entered as part of the URL. An attacker can set an XSS payload file as this vm file in the URL which results in this payload being executed. XSS vulnerabilities allow attackers to execute arbitrary JavaScript in the context of the attacked website and the attacked user. This can be abused to steal session cookies, perform requests in the name of the victim or for phishing attacks.

Affected Maven artifacts (2)

ArtifactAffected versionsFixed in
org.apache.velocity » velocity-tools
<= 2.0
-
org.apache.velocity.tools » velocity-tools-parent
< 3.1
3.1

Blast radius

2affected artifacts
11affected versions
3,346dependent artifacts (est.)
299,264dependent versions

71% of the dependent artifacts (2,393) still pull an affected version in their latest release.

DepthDependent versions
Direct
18,977
2 hops
90,028
3 hops
91,271
4 hops
60,484
5 hops
27,272
6 hops
11,232

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.