Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/81671?format=api",
    "purl": "pkg:composer/typo3/swiftmailer@4.1.0",
    "type": "composer",
    "namespace": "typo3",
    "name": "swiftmailer",
    "version": "4.1.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "5.4.5",
    "latest_non_vulnerable_version": "5.4.5",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/341012?format=api",
            "vulnerability_id": "VCID-mc6b-w14r-fkez",
            "summary": "typo3 Security fix for Flow Swift Mailer package",
            "references": [
                {
                    "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/swiftmailer/2017-01-06.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/typo3/swiftmailer/2017-01-06.yaml"
                },
                {
                    "reference_url": "https://github.com/neos/swiftmailer",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/neos/swiftmailer"
                },
                {
                    "reference_url": "https://www.neos.io/blog/flow-sa-2017-01.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.neos.io/blog/flow-sa-2017-01.html"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-xjw3-5r5c-m5ph",
                    "reference_id": "GHSA-xjw3-5r5c-m5ph",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-xjw3-5r5c-m5ph"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/81672?format=api",
                    "purl": "pkg:composer/typo3/swiftmailer@4.1.99",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/typo3/swiftmailer@4.1.99"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/81670?format=api",
                    "purl": "pkg:composer/typo3/swiftmailer@5.4.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/typo3/swiftmailer@5.4.5"
                }
            ],
            "aliases": [
                "GHSA-xjw3-5r5c-m5ph"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mc6b-w14r-fkez"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/typo3/swiftmailer@4.1.0"
}