Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/267453?format=api",
    "purl": "pkg:npm/wangeditor@2.1.2",
    "type": "npm",
    "namespace": "",
    "name": "wangeditor",
    "version": "2.1.2",
    "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/53124?format=api",
            "vulnerability_id": "VCID-p72p-sjtz-1bdw",
            "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in wangeditor.",
            "references": [
                {
                    "reference_url": "https://github.com/wangfupeng1988/wangEditor",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/wangfupeng1988/wangEditor"
                },
                {
                    "reference_url": "https://github.com/wangfupeng1988/wangEditor/issues/1945",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/wangfupeng1988/wangEditor/issues/1945"
                },
                {
                    "reference_url": "https://snyk.io/vuln/SNYK-JS-WANGEDITOR-174536",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://snyk.io/vuln/SNYK-JS-WANGEDITOR-174536"
                },
                {
                    "reference_url": "https://www.npmjs.com/advisories/876",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.npmjs.com/advisories/876"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-g7mw-5cq6-fv82",
                    "reference_id": "GHSA-g7mw-5cq6-fv82",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-g7mw-5cq6-fv82"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GHSA-g7mw-5cq6-fv82",
                "GMS-2020-553"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-p72p-sjtz-1bdw"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/wangeditor@2.1.2"
}