Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/211847?format=api",
    "purl": "pkg:npm/mariadb@0.0.2-security",
    "type": "npm",
    "namespace": "",
    "name": "mariadb",
    "version": "0.0.2-security",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "2.0.0-alpha",
    "latest_non_vulnerable_version": "2.0.0-alpha",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/39767?format=api",
            "vulnerability_id": "VCID-a7fq-zc81-afb3",
            "summary": "Malicious package (Typosquatting)\nmariadb was a malicious module published with the intent to hijack environment variables. It has been unpublished by npm.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16046",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00257",
                            "scoring_system": "epss",
                            "scoring_elements": "0.49315",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.00257",
                            "scoring_system": "epss",
                            "scoring_elements": "0.49376",
                            "published_at": "2026-06-05T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2017-16046"
                },
                {
                    "reference_url": "https://www.npmjs.com/package/mariadb/v/1.0.1?activeTab=code",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/package/mariadb/v/1.0.1?activeTab=code"
                },
                {
                    "reference_url": "https://www.npmjs.com/package/mariadb/v/1.0.2?activeTab=code",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/package/mariadb/v/1.0.2?activeTab=code"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16046",
                    "reference_id": "CVE-2017-16046",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16046"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-85fq-56wq-gmcf",
                    "reference_id": "GHSA-85fq-56wq-gmcf",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-85fq-56wq-gmcf"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53866?format=api",
                    "purl": "pkg:npm/mariadb@2.0.0-alpha",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mariadb@2.0.0-alpha"
                }
            ],
            "aliases": [
                "CVE-2017-16046",
                "GHSA-85fq-56wq-gmcf"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-a7fq-zc81-afb3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38718?format=api",
            "vulnerability_id": "VCID-envz-8wus-z7hf",
            "summary": "Hijacked Environment Variables\n`mariadb` was a malicious module published with the intent to hijack environment variables. It has been unpublished by npm.",
            "references": [],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/53866?format=api",
                    "purl": "pkg:npm/mariadb@2.0.0-alpha",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mariadb@2.0.0-alpha"
                }
            ],
            "aliases": [
                "GMS-2017-174"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-envz-8wus-z7hf"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/mariadb@0.0.2-security"
}