Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/928216?format=api",
    "purl": "pkg:deb/debian/libphp-phpmailer@5.2.14%2Bdfsg-2.3?distro=trixie",
    "type": "deb",
    "namespace": "debian",
    "name": "libphp-phpmailer",
    "version": "5.2.14+dfsg-2.3",
    "qualifiers": {
        "distro": "trixie"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "5.2.14+dfsg-2.4",
    "latest_non_vulnerable_version": "6.9.3-1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/7771?format=api",
            "vulnerability_id": "VCID-ywsv-ddhg-b7es",
            "summary": "Local File Disclosure\nPHPMailer's `msgHTML` method applies transformations to an HTML document to make it usable as an email message body. One of the transformations is to convert relative image URLs into attachments using a script-provided base directory. If no base directory is provided, it resolves to `/`, meaning that relative image URLs get treated as absolute local file paths and added as attachments.",
            "references": [
                {
                    "reference_url": "http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis"
                },
                {
                    "reference_url": "http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://kalilinux.co/2017/01/12/phpmailer-cve-2017-5223-local-information-disclosure-vulnerability-analysis/"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2017-5223",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86542",
                            "published_at": "2026-05-14T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86362",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8638",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8639",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86404",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86402",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86397",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86413",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86418",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86412",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86431",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86441",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86438",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86458",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86478",
                            "published_at": "2026-05-07T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86497",
                            "published_at": "2026-05-09T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86494",
                            "published_at": "2026-05-11T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86507",
                            "published_at": "2026-05-12T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86332",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.86342",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.02922",
                            "scoring_system": "epss",
                            "scoring_elements": "0.8636",
                            "published_at": "2026-04-04T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2017-5223"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5223",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-5223"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "4",
                            "scoring_system": "cvssv2",
                            "scoring_elements": "AV:N/AC:L/Au:S/C:P/I:N/A:N"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/phpmailer/phpmailer/CVE-2017-5223.yaml"
                },
                {
                    "reference_url": "https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PHPMailer/PHPMailer/blob/master/SECURITY.md"
                },
                {
                    "reference_url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.22",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PHPMailer/PHPMailer/releases/tag/v5.2.22"
                },
                {
                    "reference_url": "https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4x5h-cr29-fhp6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PHPMailer/PHPMailer/security/advisories/GHSA-4x5h-cr29-fhp6"
                },
                {
                    "reference_url": "https://www.exploit-db.com/exploits/43056",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.exploit-db.com/exploits/43056"
                },
                {
                    "reference_url": "https://www.exploit-db.com/exploits/43056/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.exploit-db.com/exploits/43056/"
                },
                {
                    "reference_url": "http://www.securityfocus.com/bid/95328",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://www.securityfocus.com/bid/95328"
                },
                {
                    "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853232",
                    "reference_id": "853232",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=853232"
                },
                {
                    "reference_url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/43056.py",
                    "reference_id": "CVE-2017-5223",
                    "reference_type": "exploit",
                    "scores": [],
                    "url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/43056.py"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5223",
                    "reference_id": "CVE-2017-5223",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.5",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2017-5223"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-4x5h-cr29-fhp6",
                    "reference_id": "GHSA-4x5h-cr29-fhp6",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-4x5h-cr29-fhp6"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/5956-1/",
                    "reference_id": "USN-5956-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/5956-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/928216?format=api",
                    "purl": "pkg:deb/debian/libphp-phpmailer@5.2.14%2Bdfsg-2.3?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@5.2.14%252Bdfsg-2.3%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/928209?format=api",
                    "purl": "pkg:deb/debian/libphp-phpmailer@6.2.0-2?distro=trixie",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-jca1-hyks-kud3"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@6.2.0-2%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/928207?format=api",
                    "purl": "pkg:deb/debian/libphp-phpmailer@6.6.3-1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@6.6.3-1%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/928210?format=api",
                    "purl": "pkg:deb/debian/libphp-phpmailer@6.9.3-1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@6.9.3-1%3Fdistro=trixie"
                }
            ],
            "aliases": [
                "CVE-2017-5223",
                "GHSA-4x5h-cr29-fhp6"
            ],
            "risk_score": 10.0,
            "exploitability": "2.0",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-ywsv-ddhg-b7es"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/libphp-phpmailer@5.2.14%252Bdfsg-2.3%3Fdistro=trixie"
}