Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/41998?format=api",
    "purl": "pkg:composer/prestashop/prestashop@1.7.8%2B2",
    "type": "composer",
    "namespace": "prestashop",
    "name": "prestashop",
    "version": "1.7.8+2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "8.2.5",
    "latest_non_vulnerable_version": "9.1.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/12396?format=api",
            "vulnerability_id": "VCID-ghu1-c6e6-pudm",
            "summary": "Improper Control of Generation of Code ('Code Injection')\nPrestaShop is an Open Source e-commerce platform. Starting with version 1.7.0.0 and ending with version 1.7.8.3, an attacker is able to inject twig code inside the back office when using the legacy layout. The problem is fixed in version 1.7.8.3. There are no known workarounds.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-21686",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66528",
                            "published_at": "2026-05-09T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66396",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.6641",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.6643",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66418",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66387",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66423",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.6644",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66425",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66448",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66464",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66439",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66483",
                            "published_at": "2026-05-07T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66352",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66379",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.0051",
                            "scoring_system": "epss",
                            "scoring_elements": "0.66348",
                            "published_at": "2026-04-07T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-21686"
                },
                {
                    "reference_url": "https://github.com/PrestaShop/PrestaShop",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.0",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PrestaShop/PrestaShop"
                },
                {
                    "reference_url": "https://github.com/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.0",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PrestaShop/PrestaShop/commit/d02b469ec365822e6a9f017e57f588966248bf21"
                },
                {
                    "reference_url": "https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.3",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.0",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PrestaShop/PrestaShop/releases/tag/1.7.8.3"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21686",
                    "reference_id": "CVE-2022-21686",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.0",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21686"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-mrq4-7ch7-2465",
                    "reference_id": "GHSA-mrq4-7ch7-2465",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-mrq4-7ch7-2465"
                },
                {
                    "reference_url": "https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465",
                    "reference_id": "GHSA-mrq4-7ch7-2465",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.0",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H"
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "CRITICAL",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PrestaShop/PrestaShop/security/advisories/GHSA-mrq4-7ch7-2465"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/44055?format=api",
                    "purl": "pkg:composer/prestashop/prestashop@1.7.8%2B3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/prestashop/prestashop@1.7.8%252B3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/278715?format=api",
                    "purl": "pkg:composer/prestashop/prestashop@1.7.8.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-1trs-ajxn-jkhk"
                        },
                        {
                            "vulnerability": "VCID-22v3-9qr1-pyfg"
                        },
                        {
                            "vulnerability": "VCID-2kkx-8ucb-7ucj"
                        },
                        {
                            "vulnerability": "VCID-45hk-m7uv-zqfe"
                        },
                        {
                            "vulnerability": "VCID-7wj5-37ma-hbhg"
                        },
                        {
                            "vulnerability": "VCID-8beq-8rca-mbhd"
                        },
                        {
                            "vulnerability": "VCID-9n6p-8b89-63c6"
                        },
                        {
                            "vulnerability": "VCID-c4g5-t8vx-syax"
                        },
                        {
                            "vulnerability": "VCID-cf1h-m5xj-mfc5"
                        },
                        {
                            "vulnerability": "VCID-ey36-u4qn-gbge"
                        },
                        {
                            "vulnerability": "VCID-f4m9-pgg8-nqa3"
                        },
                        {
                            "vulnerability": "VCID-gggb-dges-qke1"
                        },
                        {
                            "vulnerability": "VCID-htkt-tj6d-hydx"
                        },
                        {
                            "vulnerability": "VCID-keyj-v83x-nkck"
                        },
                        {
                            "vulnerability": "VCID-mb3x-p2d7-gqdx"
                        },
                        {
                            "vulnerability": "VCID-s53g-k7gw-yyd4"
                        },
                        {
                            "vulnerability": "VCID-vcuy-9cdj-uyhz"
                        },
                        {
                            "vulnerability": "VCID-vsng-njkm-hydv"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/prestashop/prestashop@1.7.8.3"
                }
            ],
            "aliases": [
                "CVE-2022-21686",
                "GHSA-mrq4-7ch7-2465"
            ],
            "risk_score": 4.5,
            "exploitability": "0.5",
            "weighted_severity": "9.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ghu1-c6e6-pudm"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.5",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/prestashop/prestashop@1.7.8%252B2"
}