Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/936126?format=api",
    "purl": "pkg:deb/debian/pygresql@1:5.1.2-2?distro=trixie",
    "type": "deb",
    "namespace": "debian",
    "name": "pygresql",
    "version": "1:5.1.2-2",
    "qualifiers": {
        "distro": "trixie"
    },
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "1:6.1.0-2",
    "latest_non_vulnerable_version": "1:6.1.0-2",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/3589?format=api",
            "vulnerability_id": "VCID-8z74-udgw-kue3",
            "summary": "The widely-used practice of escaping ASCII single quote \"'\" by turning it into \"\\'\" is unsafe when operating in multibyte encodings that allow 0x5c (ASCII code for backslash) as the trailing byte of a multibyte character.more details",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2006-2314.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2006-2314.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2006-2314",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84308",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84309",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84312",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84338",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84346",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84351",
                            "published_at": "2026-04-29T12:55:00Z"
                        },
                        {
                            "value": "0.02162",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84371",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84315",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84243",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84311",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84255",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84274",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84276",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84298",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84303",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.02168",
                            "scoring_system": "epss",
                            "scoring_elements": "0.84321",
                            "published_at": "2026-04-11T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2006-2314"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2314",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-2314"
                },
                {
                    "reference_url": "https://www.postgresql.org/support/security/CVE-2006-2314/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.postgresql.org/support/security/CVE-2006-2314/"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1618101",
                    "reference_id": "1618101",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1618101"
                },
                {
                    "reference_url": "https://security.gentoo.org/glsa/200607-04",
                    "reference_id": "GLSA-200607-04",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://security.gentoo.org/glsa/200607-04"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2006:0526",
                    "reference_id": "RHSA-2006:0526",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2006:0526"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/288-1/",
                    "reference_id": "USN-288-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/288-1/"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/288-2/",
                    "reference_id": "USN-288-2",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/288-2/"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/288-3/",
                    "reference_id": "USN-288-3",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/288-3/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936127?format=api",
                    "purl": "pkg:deb/debian/pygresql@3.8-1.1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@3.8-1.1%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936128?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:5.1.2-1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:5.1.2-1%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936126?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:5.1.2-2?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:5.1.2-2%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936129?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:6.1.0-2?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:6.1.0-2%3Fdistro=trixie"
                }
            ],
            "aliases": [
                "CVE-2006-2314"
            ],
            "risk_score": null,
            "exploitability": "0.5",
            "weighted_severity": "0.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8z74-udgw-kue3"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/14223?format=api",
            "vulnerability_id": "VCID-z5df-1r9g-n7dz",
            "summary": "PyGreSQL Might Be Vulnerable to Encoding-Based SQL Injection\nThe pygresql module 3.8.1 and 4.0 for Python does not properly support the PQescapeStringConn function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2009-2940.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.4",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:L/A:N"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2009-2940.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2009-2940",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.6881",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68788",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68769",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68717",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68739",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.687",
                            "published_at": "2026-04-01T12:55:00Z"
                        },
                        {
                            "value": "0.00576",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68719",
                            "published_at": "2026-04-02T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68934",
                            "published_at": "2026-05-05T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68891",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68862",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68904",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68914",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68942",
                            "published_at": "2026-04-24T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68949",
                            "published_at": "2026-04-26T12:55:00Z"
                        },
                        {
                            "value": "0.00579",
                            "scoring_system": "epss",
                            "scoring_elements": "0.68954",
                            "published_at": "2026-04-29T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2009-2940"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2940",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2940"
                },
                {
                    "reference_url": "https://github.com/PyGreSQL/PyGreSQL",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PyGreSQL/PyGreSQL"
                },
                {
                    "reference_url": "https://github.com/PyGreSQL/PyGreSQL/commit/8e19320b130946eed6f043297e3e4e005a523612",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PyGreSQL/PyGreSQL/commit/8e19320b130946eed6f043297e3e4e005a523612"
                },
                {
                    "reference_url": "https://github.com/PyGreSQL/PyGreSQL/commit/f7237d773e6f4d5a7da3d99bb6bc5062bd07935e",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/PyGreSQL/PyGreSQL/commit/f7237d773e6f4d5a7da3d99bb6bc5062bd07935e"
                },
                {
                    "reference_url": "http://ubuntu.com/usn/usn-870-1",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://ubuntu.com/usn/usn-870-1"
                },
                {
                    "reference_url": "http://www.debian.org/security/2009/dsa-1911",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://www.debian.org/security/2009/dsa-1911"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1516701",
                    "reference_id": "1516701",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1516701"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2009-2940",
                    "reference_id": "CVE-2009-2940",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2009-2940"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-xv6x-43gq-4hfj",
                    "reference_id": "GHSA-xv6x-43gq-4hfj",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-xv6x-43gq-4hfj"
                },
                {
                    "reference_url": "https://usn.ubuntu.com/870-1/",
                    "reference_id": "USN-870-1",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://usn.ubuntu.com/870-1/"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936130?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:4.0-1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:4.0-1%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936128?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:5.1.2-1?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:5.1.2-1%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936126?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:5.1.2-2?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:5.1.2-2%3Fdistro=trixie"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/936129?format=api",
                    "purl": "pkg:deb/debian/pygresql@1:6.1.0-2?distro=trixie",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:6.1.0-2%3Fdistro=trixie"
                }
            ],
            "aliases": [
                "CVE-2009-2940",
                "GHSA-xv6x-43gq-4hfj"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-z5df-1r9g-n7dz"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/pygresql@1:5.1.2-2%3Fdistro=trixie"
}