Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54304?format=api",
    "purl": "pkg:maven/org.jenkins-ci.plugins/github-branch-source@0.1",
    "type": "maven",
    "namespace": "org.jenkins-ci.plugins",
    "name": "github-branch-source",
    "version": "0.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.2.5",
    "latest_non_vulnerable_version": "2.3.5",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38976?format=api",
            "vulnerability_id": "VCID-a1y1-cecp-cbbd",
            "summary": "Information Exposure\nGitHub Branch Source provides a list of applicable credential IDs to allow users configuring a job to select the one they'd like to use. This functionality did not check permissions, allowing any user with `Overall/Read` permission to get a list of valid credentials IDs. Those could be used as part of an attack to capture the credentials using another vulnerability.",
            "references": [
                {
                    "reference_url": "https://jenkins.io/security/advisory/2017-07-10/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jenkins.io/security/advisory/2017-07-10/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000087",
                    "reference_id": "CVE-2017-1000087",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000087"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54312?format=api",
                    "purl": "pkg:maven/org.jenkins-ci.plugins/github-branch-source@2.2.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.plugins/github-branch-source@2.2.5"
                }
            ],
            "aliases": [
                "CVE-2017-1000087"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a1y1-cecp-cbbd"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38987?format=api",
            "vulnerability_id": "VCID-ee1e-58sz-5bak",
            "summary": "Cross-Site Request Forgery (CSRF)\nGitHub Branch Source Plugin connects to a user-specified GitHub API URL as part of form validation and completion. This functionality improperly checked permissions, allowing any user with `Overall/Read` access to Jenkins to connect to any web server and send credentials with a known ID, thereby possibly capturing them. Additionally, this functionality did not require POST requests be used, thereby allowing the above to be performed without direct access to Jenkins via Cross-Site Request Forgery.",
            "references": [
                {
                    "reference_url": "https://jenkins.io/security/advisory/2017-07-10/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jenkins.io/security/advisory/2017-07-10/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000091",
                    "reference_id": "CVE-2017-1000091",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1000091"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54312?format=api",
                    "purl": "pkg:maven/org.jenkins-ci.plugins/github-branch-source@2.2.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.plugins/github-branch-source@2.2.5"
                }
            ],
            "aliases": [
                "CVE-2017-1000091"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ee1e-58sz-5bak"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.jenkins-ci.plugins/github-branch-source@0.1"
}