Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/62077?format=api",
    "purl": "pkg:composer/moodle/moodle@2.0.5",
    "type": "composer",
    "namespace": "moodle",
    "name": "moodle",
    "version": "2.0.5",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.0.6",
    "latest_non_vulnerable_version": "3.11.6",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43330?format=api",
            "vulnerability_id": "VCID-6dwh-baur-9ydg",
            "summary": "Moodle vulnerable to Cross-Site Request Forgery\nMultiple cross-site request forgery (CSRF) vulnerabilities in mod/wiki/ components in Moodle 2.0.x before 2.0.5 and 2.1.x before 2.1.2 allow remote attackers to hijack the authentication of arbitrary users for requests that modify wiki data.",
            "references": [
                {
                    "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://git.moodle.org",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://git.moodle.org"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4298",
                    "reference_id": "CVE-2011-4298",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4298"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-8hxm-42v5-66hm",
                    "reference_id": "GHSA-8hxm-42v5-66hm",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-8hxm-42v5-66hm"
                }
            ],
            "fixed_packages": [
                {
                    "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"
                }
            ],
            "aliases": [
                "CVE-2011-4298",
                "GHSA-8hxm-42v5-66hm"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-6dwh-baur-9ydg"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43345?format=api",
            "vulnerability_id": "VCID-9nee-rvyv-qfba",
            "summary": "Moodle vulnerable to Cross-Site Scripting\nCross-site scripting (XSS) vulnerability in mod/wiki/pagelib.php in Moodle 2.0.x before 2.0.5 and 2.1.x before 2.1.2 allows remote authenticated users to inject arbitrary web script or HTML via a wiki comment.",
            "references": [
                {
                    "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://git.moodle.org",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://git.moodle.org"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4299",
                    "reference_id": "CVE-2011-4299",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4299"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-h6px-pvfh-q2jv",
                    "reference_id": "GHSA-h6px-pvfh-q2jv",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-h6px-pvfh-q2jv"
                }
            ],
            "fixed_packages": [
                {
                    "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"
                }
            ],
            "aliases": [
                "CVE-2011-4299",
                "GHSA-h6px-pvfh-q2jv"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9nee-rvyv-qfba"
        },
        {
            "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.",
            "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"
                }
            ],
            "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"
                }
            ],
            "aliases": [
                "CVE-2011-4301",
                "GHSA-jcrj-gmr6-p5j8"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-dt8h-ktfk-2qec"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/43728?format=api",
            "vulnerability_id": "VCID-q6wx-c4w3-skh8",
            "summary": "Moodle does not properly restrict access to category and course data\nThe file_browser component in Moodle 2.0.x before 2.0.5 and 2.1.x before 2.1.2 does not properly restrict access to category and course data, which allows remote attackers to obtain potentially sensitive information via a request for a file.",
            "references": [
                {
                    "reference_url": "http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=f6b07c4da54a9db24723beb147e8a19a3d487e00",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=f6b07c4da54a9db24723beb147e8a19a3d487e00"
                },
                {
                    "reference_url": "http://git.moodle.org/gw?p=moodle.git;a=commit;h=f6b07c4da54a9db24723beb147e8a19a3d487e00",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://git.moodle.org/gw?p=moodle.git;a=commit;h=f6b07c4da54a9db24723beb147e8a19a3d487e00"
                },
                {
                    "reference_url": "http://moodle.org/mod/forum/discuss.php?d=188311",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://moodle.org/mod/forum/discuss.php?d=188311"
                },
                {
                    "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/6f7c43c7de8f62cd53a7f3b54ad5325cd109c1be",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/moodle/moodle/commit/6f7c43c7de8f62cd53a7f3b54ad5325cd109c1be"
                },
                {
                    "reference_url": "https://github.com/moodle/moodle/commit/81c77993e3808bba68fe24d6bfbac19a41679a6f",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/moodle/moodle/commit/81c77993e3808bba68fe24d6bfbac19a41679a6f"
                },
                {
                    "reference_url": "https://github.com/moodle/moodle/commit/f6b07c4da54a9db24723beb147e8a19a3d487e00",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/moodle/moodle/commit/f6b07c4da54a9db24723beb147e8a19a3d487e00"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4300",
                    "reference_id": "CVE-2011-4300",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2011-4300"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-9p54-pc88-36c4",
                    "reference_id": "GHSA-9p54-pc88-36c4",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-9p54-pc88-36c4"
                }
            ],
            "fixed_packages": [
                {
                    "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"
                }
            ],
            "aliases": [
                "CVE-2011-4300",
                "GHSA-9p54-pc88-36c4"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-q6wx-c4w3-skh8"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.0.5"
}