Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56929?format=api",
    "purl": "pkg:maven/com.alibaba/fastjson@1.2.25",
    "type": "maven",
    "namespace": "com.alibaba",
    "name": "fastjson",
    "version": "1.2.25",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1.2.25",
    "latest_non_vulnerable_version": "1.2.48",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40398?format=api",
            "vulnerability_id": "VCID-b9ek-rpag-ryen",
            "summary": "Improper Input Validation\nFastjson allows remote attackers to execute arbitrary code via a crafted JSON request, as demonstrated by a crafted `rmi://` URI in the `dataSourceName` field of HTTP POST data to the Pippo `/json` URI, which is mishandled in `AjaxApplication.java`.",
            "references": [
                {
                    "reference_url": "https://fortiguard.com/encyclopedia/ips/44059",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://fortiguard.com/encyclopedia/ips/44059"
                },
                {
                    "reference_url": "https://github.com/alibaba/fastjson/wiki/security_update_20170315",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/alibaba/fastjson/wiki/security_update_20170315"
                },
                {
                    "reference_url": "https://github.com/pippo-java/pippo/commit/8443377d3c5b35acca190a66894b4f95e4051be2",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pippo-java/pippo/commit/8443377d3c5b35acca190a66894b4f95e4051be2"
                },
                {
                    "reference_url": "https://github.com/pippo-java/pippo/issues/466",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/pippo-java/pippo/issues/466"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-18349",
                    "reference_id": "CVE-2017-18349",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-18349"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-xjrr-xv9m-4pw5",
                    "reference_id": "GHSA-xjrr-xv9m-4pw5",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-xjrr-xv9m-4pw5"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56929?format=api",
                    "purl": "pkg:maven/com.alibaba/fastjson@1.2.25",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.alibaba/fastjson@1.2.25"
                }
            ],
            "aliases": [
                "CVE-2017-18349",
                "GHSA-xjrr-xv9m-4pw5"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-b9ek-rpag-ryen"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.alibaba/fastjson@1.2.25"
}