Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/54133?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.24.2",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-core",
    "version": "2.3.24.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.3.31",
    "latest_non_vulnerable_version": "7.1.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38856?format=api",
            "vulnerability_id": "VCID-dvxu-9sh6-qbef",
            "summary": "Improper Input Validation\nUsing an unintentional expression in a Freemarker tag instead of string literals can lead to a RCE attack.",
            "references": [
                {
                    "reference_url": "https://struts.apache.org/docs/s2-053.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-053.html"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/100829",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/100829"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12611",
                    "reference_id": "CVE-2017-12611",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-12611"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54100?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53731?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.12",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-hrky-nmnv-g3eu"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.12"
                }
            ],
            "aliases": [
                "CVE-2017-12611"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dvxu-9sh6-qbef"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38860?format=api",
            "vulnerability_id": "VCID-hrky-nmnv-g3eu",
            "summary": "Improper Input Validation\nIf an application allows entering a URL in a form field and built-in `URLValidator` is used, it is possible to prepare a special URL which will be used to overload server process when performing validation of the URL.",
            "references": [
                {
                    "reference_url": "https://struts.apache.org/docs/s2-050.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://struts.apache.org/docs/s2-050.html"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/100612",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securityfocus.com/bid/100612"
                },
                {
                    "reference_url": "http://www.securitytracker.com/id/1039261",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.securitytracker.com/id/1039261"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9804",
                    "reference_id": "CVE-2017-9804",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-9804"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54100?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.3.34",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.34"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/54101?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.13"
                }
            ],
            "aliases": [
                "CVE-2017-9804"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hrky-nmnv-g3eu"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.3.24.2"
}