Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/55892?format=api",
    "purl": "pkg:composer/symfony/security@3.3.0",
    "type": "composer",
    "namespace": "symfony",
    "name": "security",
    "version": "3.3.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.3.5",
    "latest_non_vulnerable_version": "5.3.12",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39962?format=api",
            "vulnerability_id": "VCID-djnm-e9r4-c3f5",
            "summary": "`DefaultAuthenticationSuccessHandler` or `DefaultAuthenticationFailureHandler` take the content of the `_target_path` parameter and generate a redirect response but no check is performed on the path, which could be an absolute URL to an external domain, opening redirect vulnerability. Open redirect vulnerability are not too much considered but they can be exploited for example to mount effective phishing attacks.",
            "references": [
                {
                    "reference_url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16652",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16652"
                },
                {
                    "reference_url": "https://github.com/symfony/symfony/pull/24995",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/symfony/symfony/pull/24995"
                },
                {
                    "reference_url": "https://symfony.com/cve-2017-16652",
                    "reference_id": "CVE-2017-16652",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://symfony.com/cve-2017-16652"
                },
                {
                    "reference_url": "http://symfony.com/blog/cve-2017-16652-open-redirect-vulnerability-on-security-handlers",
                    "reference_id": "CVE-2017-16652-OPEN-REDIRECT-VULNERABILITY-ON-SECURITY-HANDLERS",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://symfony.com/blog/cve-2017-16652-open-redirect-vulnerability-on-security-handlers"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55896?format=api",
                    "purl": "pkg:composer/symfony/security@3.3.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/symfony/security@3.3.13"
                }
            ],
            "aliases": [
                "CVE-2017-16652"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-djnm-e9r4-c3f5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40159?format=api",
            "vulnerability_id": "VCID-dsbx-q641-4fc7",
            "summary": "Cross-Site Request Forgery (CSRF)\nThe current implementation of CSRF protection in Symfony does not use different tokens for HTTP and HTTPS.",
            "references": [
                {
                    "reference_url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16653",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-16653"
                },
                {
                    "reference_url": "https://github.com/symfony/symfony/pull/24992",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/symfony/symfony/pull/24992"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16653",
                    "reference_id": "CVE-2017-16653",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16653"
                },
                {
                    "reference_url": "https://symfony.com/cve-2017-16653",
                    "reference_id": "CVE-2017-16653",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://symfony.com/cve-2017-16653"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55896?format=api",
                    "purl": "pkg:composer/symfony/security@3.3.13",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/symfony/security@3.3.13"
                }
            ],
            "aliases": [
                "CVE-2017-16653"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dsbx-q641-4fc7"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/symfony/security@3.3.0"
}