Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-13959

MEDIUM 6.1EPSS 94%

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
Published
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 / productAffectedFixedSource
Maven org.apache.velocity.tools:velocity-tools-parent< 3.13.1osv
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

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.

Sponsors