Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38532?format=api",
    "vulnerability_id": "VCID-q1e4-5sjs-eqgs",
    "summary": "Incorrect Default Permissions\nDuring installation, Ambari Server artifacts are not created with proper ACLs.",
    "aliases": [
        {
            "alias": "CVE-2017-5642"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53403?format=api",
            "purl": "pkg:maven/org.apache.ambari/ambari-server@2.5.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9rz2-phnw-1kca"
                },
                {
                    "vulnerability": "VCID-znw5-yk6r-nuhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.ambari/ambari-server@2.5.0"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53401?format=api",
            "purl": "pkg:maven/org.apache.ambari/ambari-server@2.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9rz2-phnw-1kca"
                },
                {
                    "vulnerability": "VCID-q1e4-5sjs-eqgs"
                },
                {
                    "vulnerability": "VCID-znw5-yk6r-nuhk"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.ambari/ambari-server@2.4.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/53402?format=api",
            "purl": "pkg:maven/org.apache.ambari/ambari-server@2.4.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-9rz2-phnw-1kca"
                },
                {
                    "vulnerability": "VCID-q1e4-5sjs-eqgs"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.ambari/ambari-server@2.4.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5642",
            "reference_id": "CVE-2017-5642",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5642"
        }
    ],
    "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": 276,
            "name": "Incorrect Default Permissions",
            "description": "During installation, installed file permissions are set to allow anyone to modify those files."
        },
        {
            "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": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-q1e4-5sjs-eqgs"
}