Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/212418?format=api",
    "vulnerability_id": "VCID-8q3t-z8da-bbg6",
    "summary": "JDA (Java Discord API) downloads external URLs when updating message components",
    "aliases": [
        {
            "alias": "GHSA-93fv-4pm9-xp28"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/35954?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.1.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.1.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/35953?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/891770?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.0.0-preview",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.0.0-preview"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/891771?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.0.0-preview_DEV",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.0.0-preview_DEV"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/891772?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/891773?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.1.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.1.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/891774?format=api",
            "purl": "pkg:maven/net.dv8tion/JDA@6.1.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-8q3t-z8da-bbg6"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/net.dv8tion/JDA@6.1.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/discord-jda/JDA",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/discord-jda/JDA"
        },
        {
            "reference_url": "https://github.com/discord-jda/JDA/commit/bb6d2ce5cf514429327c257f5c6fa95a137e3ab6",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/discord-jda/JDA/commit/bb6d2ce5cf514429327c257f5c6fa95a137e3ab6"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-93fv-4pm9-xp28",
            "reference_id": "GHSA-93fv-4pm9-xp28",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-93fv-4pm9-xp28"
        },
        {
            "reference_url": "https://github.com/discord-jda/JDA/security/advisories/GHSA-93fv-4pm9-xp28",
            "reference_id": "GHSA-93fv-4pm9-xp28",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                },
                {
                    "value": "6.9",
                    "scoring_system": "cvssv4",
                    "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/discord-jda/JDA/security/advisories/GHSA-93fv-4pm9-xp28"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 918,
            "name": "Server-Side Request Forgery (SSRF)",
            "description": "The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination."
        },
        {
            "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-8q3t-z8da-bbg6"
}