Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42957?format=api",
    "vulnerability_id": "VCID-xwnz-f44w-hbh4",
    "summary": "Mercurial Improper Certificate Validation vulnerability\nMercurial before 1.6.4 fails to verify the Common Name field of SSL certificates which allows remote attackers who acquire a certificate signed by a Certificate Authority to perform a man-in-the-middle attack.",
    "aliases": [
        {
            "alias": "CVE-2010-4237"
        },
        {
            "alias": "GHSA-7gf7-7wx4-mxmw"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/8839?format=api",
            "purl": "pkg:pypi/mercurial@1.6.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-16q8-up17-hkd7"
                },
                {
                    "vulnerability": "VCID-1w83-uq69-skeb"
                },
                {
                    "vulnerability": "VCID-2996-7bgv-eqdv"
                },
                {
                    "vulnerability": "VCID-6an9-ych8-zqcy"
                },
                {
                    "vulnerability": "VCID-71pc-96mg-ufbt"
                },
                {
                    "vulnerability": "VCID-b7rg-cd13-aygs"
                },
                {
                    "vulnerability": "VCID-dybb-af3z-zbce"
                },
                {
                    "vulnerability": "VCID-ex2f-cn1w-y7h5"
                },
                {
                    "vulnerability": "VCID-h8ah-p1pj-3bc3"
                },
                {
                    "vulnerability": "VCID-knzd-ju2a-hbe5"
                },
                {
                    "vulnerability": "VCID-n9rd-9dpp-t3cc"
                },
                {
                    "vulnerability": "VCID-q5zm-xfyx-u7bn"
                },
                {
                    "vulnerability": "VCID-tsye-4m91-6ba1"
                },
                {
                    "vulnerability": "VCID-utkv-unr7-c3dq"
                },
                {
                    "vulnerability": "VCID-zcq8-8axd-q3eg"
                },
                {
                    "vulnerability": "VCID-zs6r-e6qt-bfbu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/mercurial@1.6.4"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598841",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=598841"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4237",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-4237"
        },
        {
            "reference_url": "https://bz.mercurial-scm.org/show_bug.cgi?id=2407",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bz.mercurial-scm.org/show_bug.cgi?id=2407"
        },
        {
            "reference_url": "https://github.com/dscho/hg/commit/4ea63fb25ceeeaaa4cd1026f733b7ea7672c30b3",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/dscho/hg/commit/4ea63fb25ceeeaaa4cd1026f733b7ea7672c30b3"
        },
        {
            "reference_url": "https://github.com/dscho/hg/commit/89baabf4fb7abf30ef6fdcf3d455a7893e5cc145",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/dscho/hg/commit/89baabf4fb7abf30ef6fdcf3d455a7893e5cc145"
        },
        {
            "reference_url": "https://repo.mercurial-scm.org/hg/rev/6ab4a7d3c179",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://repo.mercurial-scm.org/hg/rev/6ab4a7d3c179"
        },
        {
            "reference_url": "https://repo.mercurial-scm.org/hg/rev/f2937d6492c5",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://repo.mercurial-scm.org/hg/rev/f2937d6492c5"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2010-4237",
            "reference_id": "CVE-2010-4237",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2010-4237"
        },
        {
            "reference_url": "https://security-tracker.debian.org/tracker/CVE-2010-4237",
            "reference_id": "CVE-2010-4237",
            "reference_type": "",
            "scores": [],
            "url": "https://security-tracker.debian.org/tracker/CVE-2010-4237"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-7gf7-7wx4-mxmw",
            "reference_id": "GHSA-7gf7-7wx4-mxmw",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-7gf7-7wx4-mxmw"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 295,
            "name": "Improper Certificate Validation",
            "description": "The product does not validate, or incorrectly validates, a certificate."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-xwnz-f44w-hbh4"
}