Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/201881?format=api",
    "purl": "pkg:npm/bleach@0.3.0",
    "type": "npm",
    "namespace": "",
    "name": "bleach",
    "version": "0.3.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": null,
    "latest_non_vulnerable_version": null,
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/53305?format=api",
            "vulnerability_id": "VCID-ddqv-eerq-vfcw",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in bleach.",
            "references": [
                {
                    "reference_url": "https://www.npmjs.com/advisories/1034",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/1034"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-5634-rv46-48jf",
                    "reference_id": "GHSA-5634-rv46-48jf",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-5634-rv46-48jf"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GHSA-5634-rv46-48jf",
                "GMS-2020-707"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ddqv-eerq-vfcw"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/30520?format=api",
            "vulnerability_id": "VCID-rups-mksz-vqbz",
            "summary": "Regular Expression Denial of Service\nbleach 3.0 and earlier is vulnerable to regular expression denial of service (ReDoS) when certain types of input is passed into the sanitize function.\n\n\"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time.\" [1]",
            "references": [
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2014-8881",
                    "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:N/I:N/A:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-8881"
                },
                {
                    "reference_url": "https://snyk.io/vuln/npm:bleach:20151024",
                    "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:N/I:N/A:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/npm:bleach:20151024"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/47",
                    "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:N/I:N/A:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/47"
                },
                {
                    "reference_url": "https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS"
                },
                {
                    "reference_url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/47.json",
                    "reference_id": "47",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/47.json"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-mvmf-cvfx-qg55",
                    "reference_id": "GHSA-mvmf-cvfx-qg55",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-mvmf-cvfx-qg55"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2014-8881",
                "GHSA-mvmf-cvfx-qg55"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rups-mksz-vqbz"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/bleach@0.3.0"
}