Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/353821?format=api",
    "vulnerability_id": "VCID-1v2g-swwv-nqan",
    "summary": "Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user.\nThis issue affects Spring Security: from 7.0.0 through 7.0.4.",
    "aliases": [
        {
            "alias": "CVE-2026-22747"
        },
        {
            "alias": "GHSA-2jrg-rf5x-568g"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1088786?format=api",
            "purl": "pkg:maven/org.springframework.security/spring-security-web@7.0.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.springframework.security/spring-security-web@7.0.5"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/581858?format=api",
            "purl": "pkg:maven/org.springframework.security/spring-security-web@7.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1v2g-swwv-nqan"
                },
                {
                    "vulnerability": "VCID-vfqt-vr9q-2kfp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.springframework.security/spring-security-web@7.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/67900?format=api",
            "purl": "pkg:maven/org.springframework.security/spring-security-web@7.0.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1v2g-swwv-nqan"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.springframework.security/spring-security-web@7.0.4"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-22747.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "8.1",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-22747.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-22747",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00017",
                    "scoring_system": "epss",
                    "scoring_elements": "0.03999",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00022",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06208",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00025",
                    "scoring_system": "epss",
                    "scoring_elements": "0.06958",
                    "published_at": "2026-04-29T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-22747"
        },
        {
            "reference_url": "https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2460487",
            "reference_id": "2460487",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2460487"
        },
        {
            "reference_url": "https://spring.io/security/cve-2026-22747",
            "reference_id": "cve-2026-22747",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:N/A:N/T:T/P:M/B:A/M:M/D:T/2026-04-22T15:42:14Z/"
                }
            ],
            "url": "https://spring.io/security/cve-2026-22747"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22747",
            "reference_id": "CVE-2026-22747",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22747"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-2jrg-rf5x-568g",
            "reference_id": "GHSA-2jrg-rf5x-568g",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-2jrg-rf5x-568g"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 295,
            "name": "Improper Certificate Validation",
            "description": "The product does not validate, or incorrectly validates, a certificate."
        },
        {
            "cwe_id": 297,
            "name": "Improper Validation of Certificate with Host Mismatch",
            "description": "The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 8.1",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-1v2g-swwv-nqan"
}