CVE-2020-13959
Velocity Tools XSS Vulnerability
Also known as GHSA-fh63-4r66-jc7v
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.
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
Vulnerability facts
- Affected
- org.apache.velocity.tools:velocity-tools-parent < 3.1; org.apache.velocity:velocity-tools <= 2.0
- Fixed in
- 3.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.1 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 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
- EPSS
- 5.70% chance of exploitation in 30 days (percentile 94, 2026-11-26)
- CWE
- CWE-79
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.apache.velocity.tools:velocity-tools-parent | < 3.1 | 3.1 | osv |
| Maven org.apache.velocity:velocity-tools | <= 2.0 | — | osv |
| Apache Software Foundation Apache Velocity Tools | >= Apache Velocity Tools, < 3.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Vendor advisories
Other
- https://lists.apache.org/thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6%40%3Ccommits.velocity.apache.org%3E
- https://lists.apache.org/thread.html/rf9868c564cff7adfd5283563f2309b93b3e496354a211a57503b2f72%40%3Cannounce.apache.org%3E
- http://www.openwall.com/lists/oss-security/2021/03/10/2
- https://lists.debian.org/debian-lts-announce/2021/03/msg00021.html
- https://lists.apache.org/thread.html/r97edad0655770342d2d36620fb1de50b142fcd6c4f5c53dd72ca41d7%40%3Cuser.velocity.apache.org%3E
- https://lists.apache.org/thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3@%3Cuser.velocity.apache.org%3E
- https://lists.apache.org/thread.html/r97edad0655770342d2d36620fb1de50b142fcd6c4f5c53dd72ca41d7@%3Cuser.velocity.apache.org%3E
- https://lists.apache.org/thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6@%3Ccommits.velocity.apache.org%3E
- https://lists.apache.org/thread.html/rf9868c564cff7adfd5283563f2309b93b3e496354a211a57503b2f72@%3Cannounce.apache.org%3E
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-26).
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.