Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/531831?format=api",
    "purl": "pkg:composer/topthink/think@5.1.28",
    "type": "composer",
    "namespace": "topthink",
    "name": "think",
    "version": "5.1.28",
    "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/41292?format=api",
            "vulnerability_id": "VCID-ftwt-btq6-qfer",
            "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\nA remote code execution (RCE) vulnerability in /library/think/App.php of Twothink v2.0 allows attackers to execute arbitrary PHP code.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2020-17952",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84853",
                            "published_at": "2026-06-09T12:55:00Z"
                        },
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84827",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84851",
                            "published_at": "2026-06-05T12:55:00Z"
                        },
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84855",
                            "published_at": "2026-06-06T12:55:00Z"
                        },
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84849",
                            "published_at": "2026-06-07T12:55:00Z"
                        },
                        {
                            "value": "0.02228",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84838",
                            "published_at": "2026-06-08T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2020-17952"
                },
                {
                    "reference_url": "https://github.com/twothink/twothink",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/twothink/twothink"
                },
                {
                    "reference_url": "https://github.com/twothink/twothink/issues/1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/twothink/twothink/issues/1"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-17952",
                    "reference_id": "CVE-2020-17952",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-17952"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-ch3r-vp46-8g22",
                    "reference_id": "GHSA-ch3r-vp46-8g22",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-ch3r-vp46-8g22"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/531854?format=api",
                    "purl": "pkg:composer/topthink/think@6.0.10",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-zwet-g2nw-fuaf"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/topthink/think@6.0.10"
                }
            ],
            "aliases": [
                "CVE-2020-17952",
                "GHSA-ch3r-vp46-8g22"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ftwt-btq6-qfer"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44404?format=api",
            "vulnerability_id": "VCID-zwet-g2nw-fuaf",
            "summary": "Deserialization of Untrusted Data\nthinkphp 6.0.0~6.0.13 and 6.1.0~6.1.1 contains a deserialization vulnerability. This vulnerability allows attackers to execute arbitrary code via a crafted payload.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-45982",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.04755",
                            "scoring_system": "epss",
                            "scoring_elements": "0.89656",
                            "published_at": "2026-06-09T12:55:00Z"
                        },
                        {
                            "value": "0.04755",
                            "scoring_system": "epss",
                            "scoring_elements": "0.89623",
                            "published_at": "2026-06-04T12:55:00Z"
                        },
                        {
                            "value": "0.04755",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8964",
                            "published_at": "2026-06-07T12:55:00Z"
                        },
                        {
                            "value": "0.04755",
                            "scoring_system": "epss",
                            "scoring_elements": "0.89641",
                            "published_at": "2026-06-08T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-45982"
                },
                {
                    "reference_url": "https://gist.github.com/Dar1in9s/aa87df679057db3bbdade360d77f8cca",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track*",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2025-03-25T14:06:45Z/"
                        }
                    ],
                    "url": "https://gist.github.com/Dar1in9s/aa87df679057db3bbdade360d77f8cca"
                },
                {
                    "reference_url": "https://github.com/top-think/think",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/top-think/think"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-45982",
                    "reference_id": "CVE-2022-45982",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-45982"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-j2h2-g882-x9j2",
                    "reference_id": "GHSA-j2h2-g882-x9j2",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-j2h2-g882-x9j2"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "CVE-2022-45982",
                "GHSA-j2h2-g882-x9j2"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-zwet-g2nw-fuaf"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.5",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/topthink/think@5.1.28"
}