Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43626?format=api",
    "vulnerability_id": "VCID-dt8h-ktfk-2qec",
    "summary": "Moodle Allows Modification of Constants\nThe MoodleQuickForm class in the Forms Library in lib/formslib.php in Moodle 1.9.x before 1.9.14, 2.0.x before 2.0.5, and 2.1.x before 2.1.2 does not recognize Forms API setConstant operations, which allows remote attackers to submit unexpected form content by modifying the values of constant fields.",
    "aliases": [
        {
            "alias": "CVE-2011-4301"
        },
        {
            "alias": "GHSA-jcrj-gmr6-p5j8"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62305?format=api",
            "purl": "pkg:composer/moodle/moodle@1.9.14",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@1.9.14"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62077?format=api",
            "purl": "pkg:composer/moodle/moodle@2.0.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.0.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62078?format=api",
            "purl": "pkg:composer/moodle/moodle@2.1.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.1.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61518?format=api",
            "purl": "pkg:composer/moodle/moodle@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-41jn-p8ef-pqbg"
                },
                {
                    "vulnerability": "VCID-41up-e414-hyba"
                },
                {
                    "vulnerability": "VCID-47h1-1tt9-4fat"
                },
                {
                    "vulnerability": "VCID-4cdk-8y5v-nba1"
                },
                {
                    "vulnerability": "VCID-4hs4-xkzr-ybbf"
                },
                {
                    "vulnerability": "VCID-6dwh-baur-9ydg"
                },
                {
                    "vulnerability": "VCID-7pf8-gx8a-fbg1"
                },
                {
                    "vulnerability": "VCID-7tky-51ah-17bs"
                },
                {
                    "vulnerability": "VCID-9ca4-gyeh-qkhc"
                },
                {
                    "vulnerability": "VCID-9e5m-wfwn-j7a3"
                },
                {
                    "vulnerability": "VCID-9nee-rvyv-qfba"
                },
                {
                    "vulnerability": "VCID-a4uv-j23y-8bg1"
                },
                {
                    "vulnerability": "VCID-atb4-adjz-1uef"
                },
                {
                    "vulnerability": "VCID-dt8h-ktfk-2qec"
                },
                {
                    "vulnerability": "VCID-e2hb-w8g1-xbax"
                },
                {
                    "vulnerability": "VCID-ek29-cpbw-77fh"
                },
                {
                    "vulnerability": "VCID-ev8f-4uzk-b3an"
                },
                {
                    "vulnerability": "VCID-fq4z-5wh4-b3b5"
                },
                {
                    "vulnerability": "VCID-fwn7-hez1-ayhj"
                },
                {
                    "vulnerability": "VCID-jbvt-9yy2-afb4"
                },
                {
                    "vulnerability": "VCID-q6wx-c4w3-skh8"
                },
                {
                    "vulnerability": "VCID-qpm1-4xwk-sfb2"
                },
                {
                    "vulnerability": "VCID-r7wm-grca-3fgw"
                },
                {
                    "vulnerability": "VCID-scrd-yyjh-gbhw"
                },
                {
                    "vulnerability": "VCID-ubt2-hvzj-1kbh"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-yyug-rt71-yfds"
                },
                {
                    "vulnerability": "VCID-zhfc-drsr-27ae"
                },
                {
                    "vulnerability": "VCID-zvsh-te3w-qyec"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/61520?format=api",
            "purl": "pkg:composer/moodle/moodle@2.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-29gm-tfg6-xkey"
                },
                {
                    "vulnerability": "VCID-3tq1-jwd5-xqcr"
                },
                {
                    "vulnerability": "VCID-4cdk-8y5v-nba1"
                },
                {
                    "vulnerability": "VCID-6dwh-baur-9ydg"
                },
                {
                    "vulnerability": "VCID-9nee-rvyv-qfba"
                },
                {
                    "vulnerability": "VCID-a4uv-j23y-8bg1"
                },
                {
                    "vulnerability": "VCID-atb4-adjz-1uef"
                },
                {
                    "vulnerability": "VCID-c9kg-rsj3-b3bw"
                },
                {
                    "vulnerability": "VCID-dt8h-ktfk-2qec"
                },
                {
                    "vulnerability": "VCID-e2hb-w8g1-xbax"
                },
                {
                    "vulnerability": "VCID-et8t-f1u1-kudb"
                },
                {
                    "vulnerability": "VCID-jbvt-9yy2-afb4"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-q6wx-c4w3-skh8"
                },
                {
                    "vulnerability": "VCID-qpm1-4xwk-sfb2"
                },
                {
                    "vulnerability": "VCID-ubt2-hvzj-1kbh"
                },
                {
                    "vulnerability": "VCID-yyug-rt71-yfds"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.1.0"
        }
    ],
    "references": [
        {
            "reference_url": "http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8"
        },
        {
            "reference_url": "http://git.moodle.org/gw?p=moodle.git;a=commit;h=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://git.moodle.org/gw?p=moodle.git;a=commit;h=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8"
        },
        {
            "reference_url": "http://moodle.org/mod/forum/discuss.php?d=188313",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "http://moodle.org/mod/forum/discuss.php?d=188313"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=747444",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=747444"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/1f52e72526c305989eadc702b5299edb2a50ac3c",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/1f52e72526c305989eadc702b5299edb2a50ac3c"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/2a44c5192c875c4f4b4e813d7227b19d8fda86ba",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/2a44c5192c875c4f4b4e813d7227b19d8fda86ba"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/a6f18c98f43b6fc6b8b7c4e96af41cb4a626e1b8",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/a6f18c98f43b6fc6b8b7c4e96af41cb4a626e1b8"
        },
        {
            "reference_url": "https://github.com/moodle/moodle/commit/f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/moodle/moodle/commit/f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4301",
            "reference_id": "CVE-2011-4301",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4301"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-jcrj-gmr6-p5j8",
            "reference_id": "GHSA-jcrj-gmr6-p5j8",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-jcrj-gmr6-p5j8"
        }
    ],
    "weaknesses": [
        {
            "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."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dt8h-ktfk-2qec"
}