Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/68081?format=api",
    "purl": "pkg:maven/org.apache.struts/struts2-core@6.3.0.2",
    "type": "maven",
    "namespace": "org.apache.struts",
    "name": "struts2-core",
    "version": "6.3.0.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "6.8.0",
    "latest_non_vulnerable_version": "7.1.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46576?format=api",
            "vulnerability_id": "VCID-mvdz-exud-3ybz",
            "summary": "Files or Directories Accessible to External Parties\nAn attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution.\nUsers are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.",
            "references": [
                {
                    "reference_url": "https://cwiki.apache.org/confluence/display/WW/S2-066",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cwiki.apache.org/confluence/display/WW/S2-066"
                },
                {
                    "reference_url": "https://github.com/apache/struts",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts"
                },
                {
                    "reference_url": "https://github.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts/commit/162e29fee9136f4bfd9b2376da2cbf590f9ea163"
                },
                {
                    "reference_url": "https://github.com/apache/struts/commit/d8c69691ef1d15e76a5f4fcf33039316da2340b6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/apache/struts/commit/d8c69691ef1d15e76a5f4fcf33039316da2340b6"
                },
                {
                    "reference_url": "https://lists.apache.org/thread/yh09b3fkf6vz5d6jdgrlvmg60lfwtqhj",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.apache.org/thread/yh09b3fkf6vz5d6jdgrlvmg60lfwtqhj"
                },
                {
                    "reference_url": "https://security.netapp.com/advisory/ntap-20231214-0010",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.netapp.com/advisory/ntap-20231214-0010"
                },
                {
                    "reference_url": "https://www.openwall.com/lists/oss-security/2023/12/07/1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.openwall.com/lists/oss-security/2023/12/07/1"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50164",
                    "reference_id": "CVE-2023-50164",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-50164"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-2j39-qcjm-428w",
                    "reference_id": "GHSA-2j39-qcjm-428w",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-2j39-qcjm-428w"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/68080?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@2.5.33",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-8cmt-z8g9-duf2"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@2.5.33"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/68081?format=api",
                    "purl": "pkg:maven/org.apache.struts/struts2-core@6.3.0.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@6.3.0.2"
                }
            ],
            "aliases": [
                "CVE-2023-50164",
                "GHSA-2j39-qcjm-428w"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-mvdz-exud-3ybz"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.apache.struts/struts2-core@6.3.0.2"
}