Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/35306?format=api",
    "vulnerability_id": "VCID-ftbw-kyb3-uucb",
    "summary": "modulemd 1.3.1 and earlier uses an unsafe function for processing externally provided data, leading to remote code execution.",
    "aliases": [
        {
            "alias": "CVE-2017-1002157"
        },
        {
            "alias": "GHSA-jhjh-ghwx-6h7r"
        },
        {
            "alias": "PYSEC-2019-153"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12716?format=api",
            "purl": "pkg:pypi/modulemd@1.3.2",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.3.2"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12708?format=api",
            "purl": "pkg:pypi/modulemd@0.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12709?format=api",
            "purl": "pkg:pypi/modulemd@1.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12710?format=api",
            "purl": "pkg:pypi/modulemd@1.0.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.0.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12711?format=api",
            "purl": "pkg:pypi/modulemd@1.0.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.0.2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12712?format=api",
            "purl": "pkg:pypi/modulemd@1.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12713?format=api",
            "purl": "pkg:pypi/modulemd@1.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12714?format=api",
            "purl": "pkg:pypi/modulemd@1.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/12715?format=api",
            "purl": "pkg:pypi/modulemd@1.3.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-ftbw-kyb3-uucb"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:pypi/modulemd@1.3.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/advisories/GHSA-jhjh-ghwx-6h7r",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-jhjh-ghwx-6h7r"
        },
        {
            "reference_url": "https://github.com/pypa/advisory-database/tree/main/vulns/modulemd/PYSEC-2019-153.yaml",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/pypa/advisory-database/tree/main/vulns/modulemd/PYSEC-2019-153.yaml"
        },
        {
            "reference_url": "https://github.com/xsuchy/modulemd",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xsuchy/modulemd"
        },
        {
            "reference_url": "https://pagure.io/modulemd/issue/55",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://pagure.io/modulemd/issue/55"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1002157",
            "reference_id": "CVE-2017-1002157",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-1002157"
        }
    ],
    "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."
        },
        {
            "cwe_id": 242,
            "name": "Use of Inherently Dangerous Function",
            "description": "The product calls a function that can never be guaranteed to work safely."
        },
        {
            "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."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ftbw-kyb3-uucb"
}