# CVE-2020-13959: Velocity Tools XSS Vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.70% (percentile 94, 2026-11-28)
- **CWE:** CWE-79
- **Aliases:** GHSA-fh63-4r66-jc7v
- **Published:** 2021-03-10T08:00:19.000Z
- **Modified:** 2026-06-17T02:54:00.697Z

## Who should check

- Projects that depend on Maven package org.apache.velocity.tools:velocity-tools-parent (\< 3.1)
- Projects that depend on Maven package org.apache.velocity:velocity-tools (\<= 2.0)
- Anyone running Apache Software Foundation Apache Velocity Tools \>= Apache Velocity Tools, \< 3.1

## 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 and fixed versions

- Maven `org.apache.velocity.tools:velocity-tools-parent`: affected \< 3.1; fixed 3.1 (osv)
- Maven `org.apache.velocity:velocity-tools`: affected \<= 2.0; fixed no fix listed yet (osv)
- Apache Software Foundation Apache Velocity Tools: \>= Apache Velocity Tools, \< 3.1 (cvelist)

## Mitigation

- Upgrade org.apache.velocity.tools:velocity-tools-parent to 3.1 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-13959. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-13959.md
Affected: org.apache.velocity.tools:velocity-tools-parent < 3.1; org.apache.velocity:velocity-tools <= 2.0
Fixed in: 3.1

Steps:
1. Search this machine and project for org.apache.velocity.tools:velocity-tools-parent (Maven), org.apache.velocity:velocity-tools (Maven), Apache Software Foundation Apache Velocity Tools: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-13959 being exploited?

There is no confirmed exploitation: CVE-2020-13959 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.70% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2020-13959?

Medium: CVSS 6.1 (v3.1, scored by NVD). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2020-13959?

org.apache.velocity.tools:velocity-tools-parent \< 3.1; org.apache.velocity:velocity-tools \<= 2.0.

### Is there a fix for CVE-2020-13959?

Yes. Fixed in 3.1. Upgrade org.apache.velocity.tools:velocity-tools-parent to 3.1 or later. Vendor 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.

### How do I check if I'm affected by CVE-2020-13959?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3%40%3Cuser.velocity.apache.org%3E>
- vendor: <https://security.gentoo.org/glsa/202107-52>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-13959>
- other: <https://lists.apache.org/thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6%40%3Ccommits.velocity.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rf9868c564cff7adfd5283563f2309b93b3e496354a211a57503b2f72%40%3Cannounce.apache.org%3E>
- other: <http://www.openwall.com/lists/oss-security/2021/03/10/2>
- other: <https://lists.debian.org/debian-lts-announce/2021/03/msg00021.html>
- other: <https://lists.apache.org/thread.html/r97edad0655770342d2d36620fb1de50b142fcd6c4f5c53dd72ca41d7%40%3Cuser.velocity.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3@%3Cuser.velocity.apache.org%3E>
- other: <https://lists.apache.org/thread.html/r97edad0655770342d2d36620fb1de50b142fcd6c4f5c53dd72ca41d7@%3Cuser.velocity.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6@%3Ccommits.velocity.apache.org%3E>
- other: <https://lists.apache.org/thread.html/rf9868c564cff7adfd5283563f2309b93b3e496354a211a57503b2f72@%3Cannounce.apache.org%3E>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-13959>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fh63-4r66-jc7v> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-13959> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-13959>
