Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/56327?format=api",
    "purl": "pkg:composer/drupal/drupal@8.3.4",
    "type": "composer",
    "namespace": "drupal",
    "name": "drupal",
    "version": "8.3.4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "8.3.9",
    "latest_non_vulnerable_version": "10.0.8",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40611?format=api",
            "vulnerability_id": "VCID-4pg6-hqge-wkcb",
            "summary": "File REST resource does not properly validate\nThe file REST resource does not properly validate some fields when manipulating files. the file REST resource is enabled and allows PATCH requests, and an attacker can get or register a user account on the site with permissions to upload files and to modify the file resource.",
            "references": [
                {
                    "reference_url": "https://www.drupal.org/SA-CORE-2017-003",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.drupal.org/SA-CORE-2017-003"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56327?format=api",
                    "purl": "pkg:composer/drupal/drupal@8.3.4",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@8.3.4"
                }
            ],
            "aliases": [
                "CVE-2017-6921"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-4pg6-hqge-wkcb"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40633?format=api",
            "vulnerability_id": "VCID-y5mz-1wsc-w3g7",
            "summary": "Files uploaded by anonymous users accessed by other users\nPrivate files that have been uploaded by an anonymous user but not permanently attached to content on the site should only be visible to the anonymous user that uploaded them, rather than all anonymous users. Drupal core does not provide this protection, allowing an access bypass vulnerability to occur. This issue is mitigated by the fact that in order to be affected, the site must allow anonymous users to upload files into a private file system.",
            "references": [
                {
                    "reference_url": "https://www.drupal.org/SA-CORE-2017-003",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.drupal.org/SA-CORE-2017-003"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56327?format=api",
                    "purl": "pkg:composer/drupal/drupal@8.3.4",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@8.3.4"
                }
            ],
            "aliases": [
                "CVE-2017-6922"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-y5mz-1wsc-w3g7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40160?format=api",
            "vulnerability_id": "VCID-zpeb-7dhc-9kcx",
            "summary": "PECL YAML parser unsafe object handling\nPECL YAML parser does not handle PHP objects safely during certain operations within Drupal core. This can lead to remote code execution.",
            "references": [
                {
                    "reference_url": "https://www.drupal.org/SA-CORE-2017-003",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.drupal.org/SA-CORE-2017-003"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/56327?format=api",
                    "purl": "pkg:composer/drupal/drupal@8.3.4",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@8.3.4"
                }
            ],
            "aliases": [
                "CVE-2017-6920"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zpeb-7dhc-9kcx"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/drupal/drupal@8.3.4"
}