Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/47510?format=api",
    "vulnerability_id": "VCID-mt5g-24m9-tfbg",
    "summary": "Keycloak vulnerable to session hijacking via re-authentication\nA flaw was found in Keycloak. An active keycloak session can be hijacked by initiating a new authentication (having the query parameter prompt=login) and forcing the user to enter his credentials once again. If the user cancels this re-authentication by clicking Restart login, the account takeover could take place as the new session, with a different SUB, will have the same SID as the previous session.",
    "aliases": [
        {
            "alias": "CVE-2023-6787"
        },
        {
            "alias": "GHSA-c9h6-v78w-52wj"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/69809?format=api",
            "purl": "pkg:maven/org.keycloak/keycloak-services@22.0.10",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.keycloak/keycloak-services@22.0.10"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/69810?format=api",
            "purl": "pkg:maven/org.keycloak/keycloak-services@24.0.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.keycloak/keycloak-services@24.0.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/68192?format=api",
            "purl": "pkg:maven/org.keycloak/keycloak-services@23.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2kyy-pzzx-n7gr"
                },
                {
                    "vulnerability": "VCID-2xvq-t8jp-zfbj"
                },
                {
                    "vulnerability": "VCID-66zv-ra8w-s3b4"
                },
                {
                    "vulnerability": "VCID-cs4b-u9hn-9ugy"
                },
                {
                    "vulnerability": "VCID-dt1x-6344-fkda"
                },
                {
                    "vulnerability": "VCID-ghak-3963-juhk"
                },
                {
                    "vulnerability": "VCID-kbc1-6psh-17d8"
                },
                {
                    "vulnerability": "VCID-mt5g-24m9-tfbg"
                },
                {
                    "vulnerability": "VCID-nw1y-zwsy-auff"
                },
                {
                    "vulnerability": "VCID-uya7-2sk1-6uat"
                },
                {
                    "vulnerability": "VCID-w6nc-88yg-dkem"
                },
                {
                    "vulnerability": "VCID-y5qk-qy59-23hn"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.keycloak/keycloak-services@23.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2024:1867",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://access.redhat.com/errata/RHSA-2024:1867"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2024:1868",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://access.redhat.com/errata/RHSA-2024:1868"
        },
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-6787.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2023-6787.json"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2254375",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2254375"
        },
        {
            "reference_url": "https://github.com/keycloak/keycloak",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/keycloak/keycloak"
        },
        {
            "reference_url": "https://access.redhat.com/security/cve/CVE-2023-6787",
            "reference_id": "CVE-2023-6787",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://access.redhat.com/security/cve/CVE-2023-6787"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-6787",
            "reference_id": "CVE-2023-6787",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-6787"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-c9h6-v78w-52wj",
            "reference_id": "GHSA-c9h6-v78w-52wj",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-c9h6-v78w-52wj"
        },
        {
            "reference_url": "https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj",
            "reference_id": "GHSA-c9h6-v78w-52wj",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/keycloak/keycloak/security/advisories/GHSA-c9h6-v78w-52wj"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 287,
            "name": "Improper Authentication",
            "description": "When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct."
        },
        {
            "cwe_id": 384,
            "name": "Session Fixation",
            "description": "Authenticating a user, or otherwise establishing a new user session, without invalidating any existing session identifier gives an attacker the opportunity to steal authenticated sessions."
        },
        {
            "cwe_id": 613,
            "name": "Insufficient Session Expiration",
            "description": "According to WASC, Insufficient Session Expiration is when a web site permits an attacker to reuse old session credentials or session IDs for authorization."
        },
        {
            "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-mt5g-24m9-tfbg"
}