Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/39532?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39532?format=api",
    "vulnerability_id": "VCID-jt5z-2bjf-rye2",
    "summary": "Path Traversal\nIn Spark, a remote attacker can read unintended static files via various representations of absolute or relative pathnames.",
    "aliases": [
        {
            "alias": "CVE-2018-9159"
        },
        {
            "alias": "GHSA-76qr-mmh8-cp8f"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55312?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.7.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.7.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182098?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182099?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@1.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182100?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@1.1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@1.1.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182101?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182102?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182103?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182104?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182105?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182106?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182107?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-hbp1-4yaj-nyhq"
                },
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/56511?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182108?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5.3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182109?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182110?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.5.5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.5.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182111?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.6.0.RC0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.6.0.RC0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182112?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.6.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.6.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182113?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.7.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.7.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/182114?format=api",
            "purl": "pkg:maven/com.sparkjava/spark-core@2.7.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-jt5z-2bjf-rye2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.sparkjava/spark-core@2.7.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2018:2020",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2020"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2018:2405",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://access.redhat.com/errata/RHSA-2018:2405"
        },
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-9159.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-9159.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-9159",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00787",
                    "scoring_system": "epss",
                    "scoring_elements": "0.74187",
                    "published_at": "2026-06-04T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-9159"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-76qr-mmh8-cp8f",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-76qr-mmh8-cp8f"
        },
        {
            "reference_url": "https://github.com/perwendel/spark",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/perwendel/spark"
        },
        {
            "reference_url": "https://github.com/perwendel/spark/commit/030e9d00125cbd1ad759668f85488aba1019c668",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/perwendel/spark/commit/030e9d00125cbd1ad759668f85488aba1019c668"
        },
        {
            "reference_url": "https://github.com/perwendel/spark/commit/a221a864db28eb736d36041df2fa6eb8839fc5cd",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/perwendel/spark/commit/a221a864db28eb736d36041df2fa6eb8839fc5cd"
        },
        {
            "reference_url": "https://github.com/perwendel/spark/commit/ce9e11517eca69e58ed4378d1e47a02bd06863cc",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/perwendel/spark/commit/ce9e11517eca69e58ed4378d1e47a02bd06863cc"
        },
        {
            "reference_url": "https://github.com/perwendel/spark/issues/981",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/perwendel/spark/issues/981"
        },
        {
            "reference_url": "http://sparkjava.com/news#spark-272-released",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "http://sparkjava.com/news#spark-272-released"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1563732",
            "reference_id": "1563732",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1563732"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-9159",
            "reference_id": "CVE-2018-9159",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-9159"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 22,
            "name": "Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')",
            "description": "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."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-jt5z-2bjf-rye2"
}