Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41186?format=api",
    "vulnerability_id": "VCID-rqpv-aex7-a3fb",
    "summary": "Exposure of Sensitive Information to an Unauthorized Actor\nElasticsearch versions before 7.11.2 and 6.8.15 contain a document disclosure flaw was found in the Elasticsearch suggester and profile API when Document and Field Level Security are enabled. The suggester and profile API are normally disabled for an index when document level security is enabled on the index. Certain queries are able to enable the profiler and suggester which could lead to disclosing the existence of documents and fields the attacker should not be able to view.",
    "aliases": [
        {
            "alias": "CVE-2021-22135"
        },
        {
            "alias": "GHSA-62ww-4p3p-7fhj"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/58338?format=api",
            "purl": "pkg:maven/org.elasticsearch/elasticsearch@6.8.15",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4vxx-vbrq-qffw"
                },
                {
                    "vulnerability": "VCID-65tw-wzs5-sqch"
                },
                {
                    "vulnerability": "VCID-81b9-8s1p-jfhu"
                },
                {
                    "vulnerability": "VCID-jauz-t6az-2yer"
                },
                {
                    "vulnerability": "VCID-pb37-mn1e-afg2"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.elasticsearch/elasticsearch@6.8.15"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/142143?format=api",
            "purl": "pkg:maven/org.elasticsearch/elasticsearch@7.11.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2a5m-mwus-6khv"
                },
                {
                    "vulnerability": "VCID-2dh7-uz4v-m7by"
                },
                {
                    "vulnerability": "VCID-2md6-nqhd-uud1"
                },
                {
                    "vulnerability": "VCID-4vxx-vbrq-qffw"
                },
                {
                    "vulnerability": "VCID-65tw-wzs5-sqch"
                },
                {
                    "vulnerability": "VCID-81b9-8s1p-jfhu"
                },
                {
                    "vulnerability": "VCID-g4sn-vtt8-5uh8"
                },
                {
                    "vulnerability": "VCID-jauz-t6az-2yer"
                },
                {
                    "vulnerability": "VCID-mq5y-672j-t3eb"
                },
                {
                    "vulnerability": "VCID-n2gb-4wdb-kqdf"
                },
                {
                    "vulnerability": "VCID-pb37-mn1e-afg2"
                },
                {
                    "vulnerability": "VCID-wgz4-ubu8-zbhu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.elasticsearch/elasticsearch@7.11.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/58624?format=api",
            "purl": "pkg:maven/org.elasticsearch/elasticsearch@7.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2a5m-mwus-6khv"
                },
                {
                    "vulnerability": "VCID-2dh7-uz4v-m7by"
                },
                {
                    "vulnerability": "VCID-2md6-nqhd-uud1"
                },
                {
                    "vulnerability": "VCID-3evp-kg6m-zygj"
                },
                {
                    "vulnerability": "VCID-4vxx-vbrq-qffw"
                },
                {
                    "vulnerability": "VCID-65tw-wzs5-sqch"
                },
                {
                    "vulnerability": "VCID-6eke-3z1k-yqfp"
                },
                {
                    "vulnerability": "VCID-81b9-8s1p-jfhu"
                },
                {
                    "vulnerability": "VCID-874a-7avt-6qea"
                },
                {
                    "vulnerability": "VCID-8c97-6vkx-vfc3"
                },
                {
                    "vulnerability": "VCID-c2pc-3aws-xugd"
                },
                {
                    "vulnerability": "VCID-j71w-rzc7-2qgs"
                },
                {
                    "vulnerability": "VCID-jauz-t6az-2yer"
                },
                {
                    "vulnerability": "VCID-mq5y-672j-t3eb"
                },
                {
                    "vulnerability": "VCID-n2gb-4wdb-kqdf"
                },
                {
                    "vulnerability": "VCID-pb37-mn1e-afg2"
                },
                {
                    "vulnerability": "VCID-qh75-ef6x-n3ep"
                },
                {
                    "vulnerability": "VCID-rqpv-aex7-a3fb"
                },
                {
                    "vulnerability": "VCID-wgz4-ubu8-zbhu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.elasticsearch/elasticsearch@7.0.0"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-22135.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.1",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-22135.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-22135",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00153",
                    "scoring_system": "epss",
                    "scoring_elements": "0.35758",
                    "published_at": "2026-06-08T12:55:00Z"
                },
                {
                    "value": "0.00153",
                    "scoring_system": "epss",
                    "scoring_elements": "0.35731",
                    "published_at": "2026-06-04T12:55:00Z"
                },
                {
                    "value": "0.00153",
                    "scoring_system": "epss",
                    "scoring_elements": "0.35827",
                    "published_at": "2026-06-05T12:55:00Z"
                },
                {
                    "value": "0.00153",
                    "scoring_system": "epss",
                    "scoring_elements": "0.35837",
                    "published_at": "2026-06-06T12:55:00Z"
                },
                {
                    "value": "0.00153",
                    "scoring_system": "epss",
                    "scoring_elements": "0.35797",
                    "published_at": "2026-06-07T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-22135"
        },
        {
            "reference_url": "https://discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://discuss.elastic.co/t/elastic-stack-7-12-0-and-6-8-15-security-update/268125"
        },
        {
            "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.1",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
                }
            ],
            "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20210625-0003",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.netapp.com/advisory/ntap-20210625-0003"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20210625-0003/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://security.netapp.com/advisory/ntap-20210625-0003/"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1943184",
            "reference_id": "1943184",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1943184"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-22135",
            "reference_id": "CVE-2021-22135",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-22135"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-62ww-4p3p-7fhj",
            "reference_id": "GHSA-62ww-4p3p-7fhj",
            "reference_type": "",
            "scores": [
                {
                    "value": "MODERATE",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-62ww-4p3p-7fhj"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2022:5606",
            "reference_id": "RHSA-2022:5606",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2022:5606"
        }
    ],
    "weaknesses": [
        {
            "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."
        },
        {
            "cwe_id": 200,
            "name": "Exposure of Sensitive Information to an Unauthorized Actor",
            "description": "The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": "3.1 - 6.9",
    "exploitability": "0.5",
    "weighted_severity": "6.2",
    "risk_score": 3.1,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rqpv-aex7-a3fb"
}