Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35722?format=api",
    "vulnerability_id": "VCID-tgcs-1brz-6yf4",
    "summary": "HashiCorp Consul and Consul Enterprise 1.10.1 Txn.Apply endpoint allowed services to register proxies for other services, enabling access to service traffic. Fixed in 1.8.15, 1.9.9 and 1.10.2.",
    "aliases": [
        {
            "alias": "CVE-2021-38698"
        },
        {
            "alias": "GHSA-6hw5-6gcx-phmw"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/371939?format=api",
            "purl": "pkg:alpm/archlinux/consul@1.10.2-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/consul@1.10.2-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/79243?format=api",
            "purl": "pkg:ebuild/app-admin/consul@1.9.17",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:ebuild/app-admin/consul@1.9.17"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/74189?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.8.15",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.8.15"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/74188?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.9.9",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.9.9"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/74187?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.10.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.10.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/371938?format=api",
            "purl": "pkg:alpm/archlinux/consul@1.10.1-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9wyg-uv2p-d3ez"
                },
                {
                    "vulnerability": "VCID-tgcs-1brz-6yf4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:alpm/archlinux/consul@1.10.1-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/74186?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.10.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9wyg-uv2p-d3ez"
                },
                {
                    "vulnerability": "VCID-tgcs-1brz-6yf4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.10.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-38698",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68554",
                    "published_at": "2026-05-09T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.6841",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68427",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68453",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68441",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68408",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68446",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.6846",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68438",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68486",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68491",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68497",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68475",
                    "published_at": "2026-05-05T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68517",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68343",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68363",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68382",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00564",
                    "scoring_system": "epss",
                    "scoring_elements": "0.68359",
                    "published_at": "2026-04-07T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-38698"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38698",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-38698"
        },
        {
            "reference_url": "https://discuss.hashicorp.com/t/hcsec-2021-24-consul-missing-authorization-check-on-txn-apply-endpoint/29026",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://discuss.hashicorp.com/t/hcsec-2021-24-consul-missing-authorization-check-on-txn-apply-endpoint/29026"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/pull/10824",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hashicorp/consul/pull/10824"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38698",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-38698"
        },
        {
            "reference_url": "https://security.gentoo.org/glsa/202208-09",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.gentoo.org/glsa/202208-09"
        },
        {
            "reference_url": "https://www.hashicorp.com/blog/category/consul",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "6.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.hashicorp.com/blog/category/consul"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015218",
            "reference_id": "1015218",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1015218"
        },
        {
            "reference_url": "https://security.archlinux.org/AVG-2360",
            "reference_id": "AVG-2360",
            "reference_type": "",
            "scores": [
                {
                    "value": "High",
                    "scoring_system": "archlinux",
                    "scoring_elements": ""
                }
            ],
            "url": "https://security.archlinux.org/AVG-2360"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 862,
            "name": "Missing Authorization",
            "description": "The product does not perform an authorization check when an actor attempts to access a resource or perform an action."
        },
        {
            "cwe_id": 863,
            "name": "Incorrect Authorization",
            "description": "The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. This allows attackers to bypass intended access restrictions."
        }
    ],
    "exploits": [],
    "severity_range_score": "4.0 - 8.9",
    "exploitability": "0.5",
    "weighted_severity": "8.0",
    "risk_score": 4.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tgcs-1brz-6yf4"
}