Vulnerabilities in pkg:maven/org.tap4j/tap
PACKAGECVE-2016-4986 is a HIGH (CVSS 7.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Tap libraries in the Maven ecosystem. The issue involves jenkins tap plugin allows path traversal. Remediation is available by upgrading affected packages to version 1.25.
pkg:maven/org.tap4j/tap
Vulnerability advisories affecting package pkg:maven/org.tap4j/tap. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-24jc-w55j-5p83 | CVE-2016-4986 | HIGH | Jenkins TAP Plugin allows Path Traversal |
| GHSA-3vcr-579j-4x48 | CVE-2023-41940 | MODERATE | Stored XSS vulnerability in Jenkins TAP Plugin |
CVE-2016-4986 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2016-4986
To remediate this vulnerability, upgrade all affected Tap dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.tap4j</groupId>
<artifactId>tap</artifactId>
<version>1.25</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.tap4j
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2016-4986, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.tap4j
Analyze the terminal output to locate any version of Tap in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.25), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.tap4j command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Tap, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2016-4986 Affected Tap Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.tap4j:tap
|
Maven |
< 1.25
|
1.25
|
References
Frequently Asked Questions
What is CVE-2016-4986?
Which Tap versions are affected?
What version fixes CVE-2016-4986?
Is tap affected?
What is the CVSS score of CVE-2016-4986?
What CWE is associated with CVE-2016-4986?
How can I check Maven dependencies for CVE-2016-4986?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-24jc-w55j-5p83",
"modified" : "2025-03-13T17:58:40Z",
"published" : "2022-05-13T01:30:58Z",
"aliases" : [ "CVE-2016-4986" ],
"summary" : "Jenkins TAP Plugin allows Path Traversal",
"details" : "Directory traversal vulnerability in the TAP plugin before 1.25 in Jenkins allows remote attackers to read arbitrary files via an unspecified parameter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.tap4j:tap"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.25"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-4986"
}, {
"type" : "WEB",
"url" : "https://github.com/jenkinsci/tap-plugin/commit/8e2a3aa86ce57a98c69e6038e15ae8fe47d08124"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jenkinsci/tap-plugin"
}, {
"type" : "WEB",
"url" : "https://wiki.jenkins-ci.org/display/SECURITY/Jenkins+Security+Advisory+2016-06-20"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-03-13T17:58:40Z",
"nvd_published_at" : "2017-02-09T15:59:00Z"
}
}