Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46380?format=api",
    "vulnerability_id": "VCID-cqzz-az3e-kych",
    "summary": "Improper Input Validation in HashiCorp Consul\nHashiCorp Consul and Consul Enterprise did not appropriately enforce scope for local tokens issued by a primary data center, where replication to a secondary data center was not enabled. Introduced in 1.4.0, fixed in 1.6.6 and 1.7.4.\n### Specific Go Packages Affected\ngithub.com/hashicorp/consul/agent",
    "aliases": [
        {
            "alias": "CVE-2020-13170"
        },
        {
            "alias": "GHSA-p2j5-3f4c-224r"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/584346?format=api",
            "purl": "pkg:deb/debian/consul@1.7.4%2Bdfsg1-1?distro=bullseye",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.7.4%252Bdfsg1-1%3Fdistro=bullseye"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1049168?format=api",
            "purl": "pkg:deb/debian/consul@1.8.7%2Bdfsg1-2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.8.7%252Bdfsg1-2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/583644?format=api",
            "purl": "pkg:deb/debian/consul@1.8.7%2Bdfsg1-2?distro=bullseye",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.8.7%252Bdfsg1-2%3Fdistro=bullseye"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76655?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.6.6",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.6.6"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/76657?format=api",
            "purl": "pkg:golang/github.com/hashicorp/consul@1.7.4",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/github.com/hashicorp/consul@1.7.4"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1049167?format=api",
            "purl": "pkg:deb/debian/consul@1.0.7~dfsg1-5",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2dmf-rj8w-xycm"
                },
                {
                    "vulnerability": "VCID-467g-8bds-t3ef"
                },
                {
                    "vulnerability": "VCID-cqzz-az3e-kych"
                },
                {
                    "vulnerability": "VCID-ftvt-9nb3-xue3"
                },
                {
                    "vulnerability": "VCID-gkgb-5g8x-7fgf"
                },
                {
                    "vulnerability": "VCID-gsqu-g2y4-a7ap"
                },
                {
                    "vulnerability": "VCID-jm2d-ejbf-qfhz"
                },
                {
                    "vulnerability": "VCID-mv9z-hxmr-skfp"
                },
                {
                    "vulnerability": "VCID-pet2-hhx7-g7fc"
                },
                {
                    "vulnerability": "VCID-th2f-96u1-syhg"
                },
                {
                    "vulnerability": "VCID-xzyq-wm1j-dkcu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/consul@1.0.7~dfsg1-5"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-13170",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.6675",
                    "published_at": "2026-05-14T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66588",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66606",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66589",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66613",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66628",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66603",
                    "published_at": "2026-05-05T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66647",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66691",
                    "published_at": "2026-05-09T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66663",
                    "published_at": "2026-05-11T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66684",
                    "published_at": "2026-05-12T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.6648",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66519",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66544",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66515",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66564",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66578",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66597",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66585",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00514",
                    "scoring_system": "epss",
                    "scoring_elements": "0.66553",
                    "published_at": "2026-04-13T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-13170"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13170",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13170"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/blob/v1.6.6/CHANGELOG.md",
            "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://github.com/hashicorp/consul/blob/v1.6.6/CHANGELOG.md"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/blob/v1.7.4/CHANGELOG.md",
            "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://github.com/hashicorp/consul/blob/v1.7.4/CHANGELOG.md"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/commit/242994a016a181d6c62a5bb83189716ad13d4216",
            "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://github.com/hashicorp/consul/commit/242994a016a181d6c62a5bb83189716ad13d4216"
        },
        {
            "reference_url": "https://github.com/hashicorp/consul/pull/8068",
            "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://github.com/hashicorp/consul/pull/8068"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-13170",
            "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://nvd.nist.gov/vuln/detail/CVE-2020-13170"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 20,
            "name": "Improper Input Validation",
            "description": "The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly."
        }
    ],
    "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-cqzz-az3e-kych"
}