Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/52397?format=api",
    "purl": "pkg:composer/silverstripe/framework@3.2.1",
    "type": "composer",
    "namespace": "silverstripe",
    "name": "framework",
    "version": "3.2.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "3.2.4-rc1",
    "latest_non_vulnerable_version": "5.1.11",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37943?format=api",
            "vulnerability_id": "VCID-4n9x-x4kd-jyfu",
            "summary": "XSS vulnerability in form field validation\nA high level XSS risk has been identified in the encoding of validation messages in certain FormField classes. Certain fields such as the `NumericField` and `DropdownField` have been identified, but any form field which presents any invalid content as a part of its validation response will be at risk.",
            "references": [
                {
                    "reference_url": "http://www.silverstripe.org/download/security-releases/ss-2015-026/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.silverstripe.org/download/security-releases/ss-2015-026/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52403?format=api",
                    "purl": "pkg:composer/silverstripe/framework@3.1.16",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-hnhv-qx7p-wqcw"
                        },
                        {
                            "vulnerability": "VCID-rrmd-ud59-ffbp"
                        },
                        {
                            "vulnerability": "VCID-vatm-1vbd-bfam"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.1.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52397?format=api",
                    "purl": "pkg:composer/silverstripe/framework@3.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.2.1"
                }
            ],
            "aliases": [
                "SS-2015-026"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-4n9x-x4kd-jyfu"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37941?format=api",
            "vulnerability_id": "VCID-h4k6-fruf-uqff",
            "summary": "Insufficient sanitization in \"Add from URL\"\n\"Add from URL\" does not clearly sanitize URL server side in `HtmlEditorField_Toolbar`. The current logic will pass this through to Oembed, which will probably reject most dangerous URLs, but it's possible future changes would break this.",
            "references": [
                {
                    "reference_url": "http://www.silverstripe.org/download/security-releases/ss-2015-027/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.silverstripe.org/download/security-releases/ss-2015-027/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52397?format=api",
                    "purl": "pkg:composer/silverstripe/framework@3.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.2.1"
                }
            ],
            "aliases": [
                "SS-2015-027"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-h4k6-fruf-uqff"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37939?format=api",
            "vulnerability_id": "VCID-nu3h-nb1g-67bs",
            "summary": "Improper Input Validation\n`HtmlEditor` improper URL sanitisation.",
            "references": [
                {
                    "reference_url": "https://www.silverstripe.org/download/security-releases/ss-2015-027/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.silverstripe.org/download/security-releases/ss-2015-027/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52397?format=api",
                    "purl": "pkg:composer/silverstripe/framework@3.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.2.1"
                }
            ],
            "aliases": [
                "SS-2015-027-1"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-nu3h-nb1g-67bs"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37938?format=api",
            "vulnerability_id": "VCID-yfuu-th6b-nba4",
            "summary": "Cross-site Scripting\nForm field validation message XSS vulnerability.",
            "references": [
                {
                    "reference_url": "https://www.silverstripe.org/download/security-releases/ss-2015-026/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.silverstripe.org/download/security-releases/ss-2015-026/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/52397?format=api",
                    "purl": "pkg:composer/silverstripe/framework@3.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.2.1"
                }
            ],
            "aliases": [
                "SS-2015-026-1"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-yfuu-th6b-nba4"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/framework@3.2.1"
}