Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/52638?format=api",
    "vulnerability_id": "VCID-k874-59fj-9fcg",
    "summary": "YAML Go package vulnerable to denial of service\nDue to unbounded alias chasing, a maliciously crafted YAML file can cause the system to consume significant system resources. If parsing user input, this may be used as a denial of service vector.",
    "aliases": [
        {
            "alias": "CVE-2021-4235"
        },
        {
            "alias": "GHSA-r88r-gmrh-7j83"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/924227?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.2.8-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.2.8-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1056725?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.4.0-1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.4.0-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/924228?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.4.0-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.4.0-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/924226?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.4.0-4?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.4.0-4%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/924230?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.4.0-5?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.4.0-5%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/924229?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.4.3-1?distro=trixie",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.4.3-1%3Fdistro=trixie"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/80338?format=api",
            "purl": "pkg:golang/gopkg.in/yaml.v2@2.2.3",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:golang/gopkg.in/yaml.v2@2.2.3"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1056722?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@0.0%2Bgit20160928.0.a5b47d3-2~bpo8%2B1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-k874-59fj-9fcg"
                },
                {
                    "vulnerability": "VCID-tn6y-xfkz-83e4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@0.0%252Bgit20160928.0.a5b47d3-2~bpo8%252B1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1056723?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@0.0%2Bgit20160928.0.a5b47d3-2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-k874-59fj-9fcg"
                },
                {
                    "vulnerability": "VCID-tn6y-xfkz-83e4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@0.0%252Bgit20160928.0.a5b47d3-2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/1056724?format=api",
            "purl": "pkg:deb/debian/golang-yaml.v2@2.2.2-1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-k874-59fj-9fcg"
                },
                {
                    "vulnerability": "VCID-tn6y-xfkz-83e4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/golang-yaml.v2@2.2.2-1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/97365?format=api",
            "purl": "pkg:rpm/redhat/openshift-clients@4.12.0-202301042257.p0.g854f807.assembly.stream?arch=el8",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1rsj-pm1p-qbd6"
                },
                {
                    "vulnerability": "VCID-3ypr-ppaw-kkf4"
                },
                {
                    "vulnerability": "VCID-azr4-u36f-pbew"
                },
                {
                    "vulnerability": "VCID-h3bw-m2us-cbgz"
                },
                {
                    "vulnerability": "VCID-k874-59fj-9fcg"
                },
                {
                    "vulnerability": "VCID-rtb8-bayb-dfbn"
                },
                {
                    "vulnerability": "VCID-x63z-bjr8-j7d7"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/openshift-clients@4.12.0-202301042257.p0.g854f807.assembly.stream%3Farch=el8"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-4235.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-4235.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2021-4235",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00034",
                    "scoring_system": "epss",
                    "scoring_elements": "0.09766",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00034",
                    "scoring_system": "epss",
                    "scoring_elements": "0.09779",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00034",
                    "scoring_system": "epss",
                    "scoring_elements": "0.09811",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00036",
                    "scoring_system": "epss",
                    "scoring_elements": "0.10496",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16653",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16574",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16593",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16539",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16453",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16436",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16416",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16475",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16409",
                    "published_at": "2026-04-01T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.1659",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00053",
                    "scoring_system": "epss",
                    "scoring_elements": "0.16533",
                    "published_at": "2026-04-12T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2021-4235"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4235",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-4235"
        },
        {
            "reference_url": "https://github.com/go-yaml/yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/go-yaml/yaml"
        },
        {
            "reference_url": "https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-11T16:24:34Z/"
                }
            ],
            "url": "https://github.com/go-yaml/yaml/commit/bb4e33bf68bf89cad44d386192cbed201f35b241"
        },
        {
            "reference_url": "https://github.com/go-yaml/yaml/pull/375",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-11T16:24:34Z/"
                }
            ],
            "url": "https://github.com/go-yaml/yaml/pull/375"
        },
        {
            "reference_url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-11T16:24:34Z/"
                }
            ],
            "url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00001.html"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4235",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4235"
        },
        {
            "reference_url": "https://pkg.go.dev/vuln/GO-2021-0061",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-11T16:24:34Z/"
                }
            ],
            "url": "https://pkg.go.dev/vuln/GO-2021-0061"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2156727",
            "reference_id": "2156727",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2156727"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2022:7398",
            "reference_id": "RHSA-2022:7398",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2022:7398"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:0569",
            "reference_id": "RHSA-2023:0569",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:0569"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:0570",
            "reference_id": "RHSA-2023:0570",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:0570"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:1326",
            "reference_id": "RHSA-2023:1326",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:1326"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:3615",
            "reference_id": "RHSA-2023:3615",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:3615"
        },
        {
            "reference_url": "https://access.redhat.com/errata/RHSA-2023:3742",
            "reference_id": "RHSA-2023:3742",
            "reference_type": "",
            "scores": [],
            "url": "https://access.redhat.com/errata/RHSA-2023:3742"
        },
        {
            "reference_url": "https://usn.ubuntu.com/6287-1/",
            "reference_id": "USN-6287-1",
            "reference_type": "",
            "scores": [],
            "url": "https://usn.ubuntu.com/6287-1/"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 400,
            "name": "Uncontrolled Resource Consumption",
            "description": "The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."
        }
    ],
    "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-k874-59fj-9fcg"
}