Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/54982?format=api",
    "vulnerability_id": "VCID-16bj-3vbe-euep",
    "summary": "Silverstripe XSS vulnerability via VirtualPage\nA cross-site scripting vulnerability has been discovered in the VirtualPage class.\n\nThis vulnerability can only be exploited if a user with CMS access has posted malicious or unescaped HTML into any of the textfields of a page which a VirtualPage refers to.\n\nThis has been resolved by ensuring that VirtualPage safely escapes all field content.",
    "aliases": [
        {
            "alias": "GHSA-r97r-64vp-fghm"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52154?format=api",
            "purl": "pkg:composer/silverstripe/cms@3.1.10",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/cms@3.1.10"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/52152?format=api",
            "purl": "pkg:composer/silverstripe/cms@3.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-16bj-3vbe-euep"
                },
                {
                    "vulnerability": "VCID-3djp-e58j-2qey"
                },
                {
                    "vulnerability": "VCID-3uu7-zheq-duh4"
                },
                {
                    "vulnerability": "VCID-5633-rfh2-9qgs"
                },
                {
                    "vulnerability": "VCID-p8xv-3qj1-h3g8"
                },
                {
                    "vulnerability": "VCID-rj9s-ems3-jqbk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/silverstripe/cms@3.1.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/cms/SS-2015-005-1.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.1",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/cms/SS-2015-005-1.yaml"
        },
        {
            "reference_url": "https://github.com/silverstripe/silverstripe-cms",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.1",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/silverstripe/silverstripe-cms"
        },
        {
            "reference_url": "https://www.silverstripe.org/software/download/security-releases/ss-2015-005",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.1",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.silverstripe.org/software/download/security-releases/ss-2015-005"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-r97r-64vp-fghm",
            "reference_id": "GHSA-r97r-64vp-fghm",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-r97r-64vp-fghm"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "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": "4.0 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-16bj-3vbe-euep"
}