Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/139733?format=api",
    "purl": "pkg:npm/typeorm@0.1.5",
    "type": "npm",
    "namespace": "",
    "name": "typeorm",
    "version": "0.1.5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "0.1.15",
    "latest_non_vulnerable_version": "0.3.26",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/13681?format=api",
            "vulnerability_id": "VCID-7d2s-wmb5-bybb",
            "summary": "SQL Injection in typeorm\nVersions of `typeorm` before 0.1.15 are vulnerable to SQL Injection. Field names are not properly validated allowing attackers to inject SQL statements and execute arbitrary SQL queries.\n\n\n## Recommendation\n\nUpgrade to version 0.1.15",
            "references": [
                {
                    "reference_url": "https://github.com/typeorm/typeorm",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/typeorm/typeorm"
                },
                {
                    "reference_url": "https://github.com/typeorm/typeorm/commit/d46c8b0e6c0db56bb5976a4917e9f67a43715111",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/typeorm/typeorm/commit/d46c8b0e6c0db56bb5976a4917e9f67a43715111"
                },
                {
                    "reference_url": "https://hackerone.com/reports/319458",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://hackerone.com/reports/319458"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/800",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.npmjs.com/advisories/800"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-w7q7-vjp8-7jv4",
                    "reference_id": "GHSA-w7q7-vjp8-7jv4",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-w7q7-vjp8-7jv4"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/57172?format=api",
                    "purl": "pkg:npm/typeorm@0.1.15",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/typeorm@0.1.15"
                }
            ],
            "aliases": [
                "GHSA-w7q7-vjp8-7jv4",
                "GMS-2019-144"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7d2s-wmb5-bybb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.5",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/typeorm@0.1.5"
}