Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40476?format=api",
    "vulnerability_id": "VCID-s8n3-a28m-qbeh",
    "summary": "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)\nPivotal CredHub Service Broker, versions prior to 1.1.0, uses a guessable form of random number generation in creating service broker's UAA client. A remote malicious user may guess the client secret and obtain or modify credentials for users of the CredHub Service.",
    "aliases": [
        {
            "alias": "CVE-2018-15795"
        },
        {
            "alias": "GHSA-q3jg-4c82-j4xh"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57092?format=api",
            "purl": "pkg:maven/org.springframework.credhub/spring-credhub-core@1.1.0",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.springframework.credhub/spring-credhub-core@1.1.0"
        }
    ],
    "affected_packages": [],
    "references": [
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-15795",
            "reference_id": "CVE-2018-15795",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-15795"
        },
        {
            "reference_url": "https://pivotal.io/security/cve-2018-15795",
            "reference_id": "CVE-2018-15795",
            "reference_type": "",
            "scores": [],
            "url": "https://pivotal.io/security/cve-2018-15795"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-q3jg-4c82-j4xh",
            "reference_id": "GHSA-q3jg-4c82-j4xh",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-q3jg-4c82-j4xh"
        }
    ],
    "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": 338,
            "name": "Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)",
            "description": "The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong."
        },
        {
            "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-s8n3-a28m-qbeh"
}