Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/185366?format=api",
    "purl": "pkg:maven/com.squareup.okhttp3/okhttp@3.4.1",
    "type": "maven",
    "namespace": "com.squareup.okhttp3",
    "name": "okhttp",
    "version": "3.4.1",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "4.9.2",
    "latest_non_vulnerable_version": "4.9.2",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/55090?format=api",
            "vulnerability_id": "VCID-4e5q-x177-uyat",
            "summary": "Square OkHttp can accept the wrong certificate\nIn verifyHostName of OkHostnameVerifier.java, there is a possible way to accept a certificate for the wrong domain due to improperly used crypto. This could lead to remote information disclosure with no additional execution privileges needed. User interaction is not needed for exploitation. Product: AndroidVersions: Android-8.1 Android-9 Android-10 Android-11 Android ID: A-171980069",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-0341.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "7.5",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-0341.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-0341",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77482",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77349",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77376",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77357",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77386",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77396",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77422",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77402",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77398",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77438",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77437",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77429",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77463",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.7747",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.01037",
                            "scoring_system": "epss",
                            "scoring_elements": "0.77343",
                            "published_at": "2026-04-01T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-0341"
                },
                {
                    "reference_url": "https://github.com/square/okhttp",
                    "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://github.com/square/okhttp"
                },
                {
                    "reference_url": "https://github.com/square/okhttp/commit/f574ea2f5259d9040f264ddeb582fb1ce563f10c",
                    "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://github.com/square/okhttp/commit/f574ea2f5259d9040f264ddeb582fb1ce563f10c"
                },
                {
                    "reference_url": "https://github.com/square/okhttp/issues/6724",
                    "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://github.com/square/okhttp/issues/6724"
                },
                {
                    "reference_url": "https://github.com/square/okhttp/pull/6741",
                    "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://github.com/square/okhttp/pull/6741"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-0341",
                    "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://nvd.nist.gov/vuln/detail/CVE-2021-0341"
                },
                {
                    "reference_url": "https://source.android.com/security/bulletin/2021-02-01",
                    "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://source.android.com/security/bulletin/2021-02-01"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2154086",
                    "reference_id": "2154086",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2154086"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-3cqm-mf7h-prrj",
                    "reference_id": "GHSA-3cqm-mf7h-prrj",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-3cqm-mf7h-prrj"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:0756",
                    "reference_id": "RHSA-2023:0756",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:0756"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2705",
                    "reference_id": "RHSA-2023:2705",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2705"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2706",
                    "reference_id": "RHSA-2023:2706",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2706"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2707",
                    "reference_id": "RHSA-2023:2707",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2707"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2710",
                    "reference_id": "RHSA-2023:2710",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2710"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2713",
                    "reference_id": "RHSA-2023:2713",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2713"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:2723",
                    "reference_id": "RHSA-2023:2723",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:2723"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2023:3223",
                    "reference_id": "RHSA-2023:3223",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2023:3223"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2024:6667",
                    "reference_id": "RHSA-2024:6667",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2024:6667"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/82268?format=api",
                    "purl": "pkg:maven/com.squareup.okhttp3/okhttp@4.9.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.squareup.okhttp3/okhttp@4.9.2"
                }
            ],
            "aliases": [
                "CVE-2021-0341",
                "GHSA-3cqm-mf7h-prrj"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-4e5q-x177-uyat"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/10582?format=api",
            "vulnerability_id": "VCID-7yzs-xpqs-skbc",
            "summary": "Improper Certificate Validation\nCertificatePinner.java allows man-in-the-middle attackers to bypass certificate pinning by changing SSLContext and the boolean values while hooking the application.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-20200.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.9",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2018-20200.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-20200",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52638",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52681",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52707",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52673",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52723",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52718",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52768",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52751",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52735",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52774",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52781",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52764",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52716",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52726",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.00294",
                            "scoring_system": "epss",
                            "scoring_elements": "0.52687",
                            "published_at": "2026-04-29T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-20200"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1709379",
                    "reference_id": "1709379",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1709379"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20200",
                    "reference_id": "CVE-2018-20200",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20200"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/36084?format=api",
                    "purl": "pkg:maven/com.squareup.okhttp3/okhttp@3.12.1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-4e5q-x177-uyat"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.squareup.okhttp3/okhttp@3.12.1"
                }
            ],
            "aliases": [
                "CVE-2018-20200"
            ],
            "risk_score": 2.6,
            "exploitability": "0.5",
            "weighted_severity": "5.3",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-7yzs-xpqs-skbc"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/com.squareup.okhttp3/okhttp@3.4.1"
}