Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/311?format=api",
    "purl": "pkg:mozilla/Firefox%20for%20iOS@124.0.0",
    "type": "mozilla",
    "namespace": "",
    "name": "Firefox for iOS",
    "version": "124.0.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "127.0.0",
    "latest_non_vulnerable_version": "151.2.0",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/70?format=api",
            "vulnerability_id": "VCID-smk9-8er8-zbc3",
            "summary": "Dragging Javascript URLs to the address bar could cause them to be loaded, bypassing restrictions and security protections",
            "references": [
                {
                    "reference_url": "https://www.mozilla.org/en-US/security/advisories/mfsa2024-17",
                    "reference_id": "mfsa2024-17",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "none",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.mozilla.org/en-US/security/advisories/mfsa2024-17"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/311?format=api",
                    "purl": "pkg:mozilla/Firefox%20for%20iOS@124.0.0",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:mozilla/Firefox%2520for%2520iOS@124.0.0"
                }
            ],
            "aliases": [
                "CVE-2024-31393"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-smk9-8er8-zbc3"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:mozilla/Firefox%2520for%2520iOS@124.0.0"
}