Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/19405?format=api",
    "vulnerability_id": "VCID-jdwy-ny15-zfg3",
    "summary": "silverstripe/graphql Cross-Site Request Forgery vulnerability\nThe GraphQL controller lacked any CSRF protection, meaning authenticated users could be forced or tricked into visiting a URL that would send a GET request to the affected web server that could mutate or destroy data without the user knowing.",
    "aliases": [
        {
            "alias": "GHSA-wjg9-v8cf-f5q2"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60503?format=api",
            "purl": "pkg:composer/silverstripe/graphql@2.0.3",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-414d-7bfm-kud7"
                },
                {
                    "vulnerability": "VCID-ajga-3b99-yugh"
                },
                {
                    "vulnerability": "VCID-cdgj-bdpy-ukak"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/graphql@2.0.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/37108?format=api",
            "purl": "pkg:composer/silverstripe/graphql@2.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-414d-7bfm-kud7"
                },
                {
                    "vulnerability": "VCID-ajga-3b99-yugh"
                },
                {
                    "vulnerability": "VCID-cdgj-bdpy-ukak"
                },
                {
                    "vulnerability": "VCID-jdwy-ny15-zfg3"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/graphql@2.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/189731?format=api",
            "purl": "pkg:composer/silverstripe/graphql@2.0.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-414d-7bfm-kud7"
                },
                {
                    "vulnerability": "VCID-ajga-3b99-yugh"
                },
                {
                    "vulnerability": "VCID-cdgj-bdpy-ukak"
                },
                {
                    "vulnerability": "VCID-jdwy-ny15-zfg3"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/graphql@2.0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/189732?format=api",
            "purl": "pkg:composer/silverstripe/graphql@2.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-414d-7bfm-kud7"
                },
                {
                    "vulnerability": "VCID-ajga-3b99-yugh"
                },
                {
                    "vulnerability": "VCID-cdgj-bdpy-ukak"
                },
                {
                    "vulnerability": "VCID-jdwy-ny15-zfg3"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/graphql@2.0.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/SS-2018-007-1.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/graphql/SS-2018-007-1.yaml"
        },
        {
            "reference_url": "https://github.com/silverstripe/silverstripe-graphql",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/silverstripe/silverstripe-graphql"
        },
        {
            "reference_url": "https://github.com/silverstripe/silverstripe-graphql/commit/b59ba397ff42d8934bd2d9c932514f898c327f64",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/silverstripe/silverstripe-graphql/commit/b59ba397ff42d8934bd2d9c932514f898c327f64"
        },
        {
            "reference_url": "https://www.silverstripe.org/download/security-releases/ss-2018-007",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:H"
                },
                {
                    "value": "HIGH",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.silverstripe.org/download/security-releases/ss-2018-007"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-wjg9-v8cf-f5q2",
            "reference_id": "GHSA-wjg9-v8cf-f5q2",
            "reference_type": "",
            "scores": [
                {
                    "value": "HIGH",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-wjg9-v8cf-f5q2"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 352,
            "name": "Cross-Site Request Forgery (CSRF)",
            "description": "The web application does not, or can not, sufficiently verify whether a well-formed, valid, consistent request was intentionally provided by the user who submitted the request."
        },
        {
            "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": "7.0 - 8.9",
    "exploitability": "0.5",
    "weighted_severity": "8.0",
    "risk_score": 4.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-jdwy-ny15-zfg3"
}