CVE-2020-13959
Cross-site scripting (XSS) in Apache Velocity Tools
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 Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.apache.velocity » velocity-tools | <= 2.0 | - |
| org.apache.velocity.tools » velocity-tools-parent | < 3.1 | 3.1 |
Blast radius
71% of the dependent artifacts (2,393) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 18,977 |
| 2 hops | 90,028 |
| 3 hops | 91,271 |
| 4 hops | 60,484 |
| 5 hops | 27,272 |
| 6 hops | 11,232 |
Most used dependents
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-checkstyle-plugin11,720 usages
- org.apache.maven.plugins » maven-site-plugin9,107 usages
- org.apache.maven.plugins » maven-plugin-plugin6,502 usages
- org.codehaus.mojo » versions-maven-plugin5,371 usages
- org.codehaus.mojo » license-maven-plugin3,293 usages
- com.github.spotbugs » spotbugs-maven-plugin3,264 usages
- org.codehaus.mojo » findbugs-maven-plugin2,938 usages
- org.apache.rat » apache-rat-plugin2,568 usages
- org.apache.maven.plugins » maven-pmd-plugin2,252 usages
- org.apache.maven.plugins » maven-project-info-reports-plugin1,458 usages
- org.jenkins-ci.tools » maven-hpi-plugin1,404 usages
- org.apache.maven.plugins » maven-invoker-plugin1,393 usages
- org.owasp » dependency-check-maven1,289 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2020-13959 | nvd.nist.gov |
| Web | thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3@<user.velocity.apach ... | lists.apache.org |
| Web | thread.html/r6802a38c3041059e763a1aadd7b37fe95de75408144b5805e29b84e3@<user.velocity.apach ... | lists.apache.org |
| Web | thread.html/r97edad0655770342d2d36620fb1de50b142fcd6c4f5c53dd72ca41d7@<user.velocity.apach ... | lists.apache.org |
| Web | thread.html/rb042f3b0090e419cc9f5a3d32cf0baff283ccd6fcb1caea61915d6b6@<commits.velocity.ap ... | lists.apache.org |
| Web | thread.html/rf9868c564cff7adfd5283563f2309b93b3e496354a211a57503b2f72@<announce.apache.org ... | lists.apache.org |
| Web | debian-lts-announce/2021/03/msg00021.html | lists.debian.org |
| Web | glsa/202107-52 | security.gentoo.org |
| Web | lists/oss-security/2021/03/10/2 | openwall.com |
