CVEfocus › CVE database › CVE-2020-13959

CVE-2020-13959Velocity Tools XSS Vulnerability

CVSS 6.1 MediumEPSS 5.7% (higher than 94% of CVEs)Published 2021-03-10Updated 2025-02-13Assigner: apache

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.

CWE-79

What to do

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Maven, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
4Fix pending
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04velocity-toolsNot affected
vulnerable_code_not_present
Ubuntu 20.04velocity-toolsFixed2.0-7ubuntu0.20.04.1UBUNTU-CVE-2020-13959
Ubuntu 18.04velocity-toolsFix pending2.0-7ubuntu0.18.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-13959
Ubuntu 16.04velocity-toolsFix pending2.0-4ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2020-13959
Ubuntu 14.04velocity-toolsFix pending
Debian 14velocity-toolsFixed2.0-8DEBIAN-CVE-2020-13959
Debian 13velocity-toolsFixed2.0-8DEBIAN-CVE-2020-13959
Debian 12velocity-toolsFixed2.0-8DEBIAN-CVE-2020-13959
Red Hat Enterprise Linux 9velocityNot affected
Red Hat Enterprise Linux 8velocityNot affected
Red Hat Enterprise Linux 8velocity-demoNot affected
Red Hat Enterprise Linux 8velocity-javadocNot affected
Red Hat Enterprise Linux 8velocity-manualNot affected
Red Hat Enterprise Linux 7velocityNot affected
Red Hat Enterprise Linux 7velocity-demoNot affected
Red Hat Enterprise Linux 7velocity-javadocNot affected
Red Hat Enterprise Linux 7velocity-manualNot affected
Red Hat Enterprise Linux 6velocityNot affected
Red Hat Enterprise Linux 6velocity-demoNot affected
Red Hat Enterprise Linux 6velocity-javadocNot affected
Red Hat Enterprise Linux 6velocity-manualNot affected
Maven libraryorg.apache.velocity.tools:velocity-tools-parentFixed3.1GHSA-fh63-4r66-jc7v
Maven libraryorg.apache.velocity:velocity-toolsFix pendingGHSA-fh63-4r66-jc7v

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: Applications based on Apache Velocity Tools should upgrade to version 3.1. This version escapes the reflected text on the default error page, preventing potential javascript execution.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.