Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/57539?format=api",
    "purl": "pkg:composer/dolibarr/dolibarr@3.8.0",
    "type": "composer",
    "namespace": "dolibarr",
    "name": "dolibarr",
    "version": "3.8.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "3.8.3",
    "latest_non_vulnerable_version": "21.0.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40804?format=api",
            "vulnerability_id": "VCID-11u2-56qq-cye4",
            "summary": "SQL Injection\nAn issue was discovered in Dolibarr `expensereport/card.php` in the expense reports module allows SQL injection via the `integer` parameters `qty` and `value_unit`.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16809",
                    "reference_id": "CVE-2018-16809",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16809"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55371?format=api",
                    "purl": "pkg:composer/dolibarr/dolibarr@7.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/dolibarr/dolibarr@7.0.1"
                }
            ],
            "aliases": [
                "CVE-2018-16809"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-11u2-56qq-cye4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40802?format=api",
            "vulnerability_id": "VCID-9xkp-4t9p-eqbb",
            "summary": "Cross-site Scripting\nAn issue was discovered in Dolibarr There is Stored XSS in `expensereport/card.php` in the expense reports plugin via the `comments` parameter, or a public or private note.",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16808",
                    "reference_id": "CVE-2018-16808",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16808"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/55371?format=api",
                    "purl": "pkg:composer/dolibarr/dolibarr@7.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/dolibarr/dolibarr@7.0.1"
                }
            ],
            "aliases": [
                "CVE-2018-16808"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9xkp-4t9p-eqbb"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/dolibarr/dolibarr@3.8.0"
}