Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/284110?format=api",
    "purl": "pkg:maven/org.postgresql/postgresql@42.2.28.jre7",
    "type": "maven",
    "namespace": "org.postgresql",
    "name": "postgresql",
    "version": "42.2.28.jre7",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "42.3.8",
    "latest_non_vulnerable_version": "42.7.7",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/13266?format=api",
            "vulnerability_id": "VCID-hpc5-vtmd-gub5",
            "summary": "Path traversal in org.postgresql:postgresql\n** DISPUTED ** In pgjdbc before 42.3.3, an attacker (who controls the jdbc URL or properties) can call java.util.logging.FileHandler to write to arbitrary files through the loggerFile and loggerLevel connection properties. An example situation is that an attacker could create an executable JSP file under a Tomcat web root. NOTE: the vendor's position is that there is no pgjdbc vulnerability; instead, it is a vulnerability for any application to use the pgjdbc driver with untrusted connection properties.",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-26520.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "9.8",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-26520.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-26520",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79609",
                            "published_at": "2026-04-21T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79557",
                            "published_at": "2026-04-04T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79543",
                            "published_at": "2026-04-07T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79572",
                            "published_at": "2026-04-08T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79579",
                            "published_at": "2026-04-09T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79601",
                            "published_at": "2026-04-11T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79585",
                            "published_at": "2026-04-12T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79577",
                            "published_at": "2026-04-13T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79606",
                            "published_at": "2026-04-16T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79605",
                            "published_at": "2026-04-18T12:55:00Z"
                        },
                        {
                            "value": "0.0128",
                            "scoring_system": "epss",
                            "scoring_elements": "0.79534",
                            "published_at": "2026-04-02T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-26520"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21724",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21724"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26520",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26520"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/pull/2454/commits/017b929977b4f85795f9ad2fa5de6e80978b8ccc"
                },
                {
                    "reference_url": "https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://jdbc.postgresql.org/documentation/changelog.html#version_42.3.3"
                },
                {
                    "reference_url": "https://jdbc.postgresql.org/documentation/head/tomcat.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://jdbc.postgresql.org/documentation/head/tomcat.html"
                },
                {
                    "reference_url": "https://www.debian.org/security/2022/dsa-5196",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://www.debian.org/security/2022/dsa-5196"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2064007",
                    "reference_id": "2064007",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2064007"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-26520",
                    "reference_id": "CVE-2022-26520",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-26520"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8",
                    "reference_id": "GHSA-673j-qm5f-xpv8",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-727h-hrw8-jg8q",
                    "reference_id": "GHSA-727h-hrw8-jg8q",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "LOW",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-727h-hrw8-jg8q"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2022:5532",
                    "reference_id": "RHSA-2022:5532",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2022:5532"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2022:6835",
                    "reference_id": "RHSA-2022:6835",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2022:6835"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/46299?format=api",
                    "purl": "pkg:maven/org.postgresql/postgresql@42.3.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-qub7-qp14-uqcg"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.3.3"
                }
            ],
            "aliases": [
                "CVE-2022-26520",
                "GHSA-727h-hrw8-jg8q"
            ],
            "risk_score": 4.4,
            "exploitability": "0.5",
            "weighted_severity": "8.8",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hpc5-vtmd-gub5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/12924?format=api",
            "vulnerability_id": "VCID-uzj4-puvz-zfgh",
            "summary": "Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')\nThe connection properties for configuring a pgjdbc connection are not meant to be exposed to an unauthenticated attacker. While allowing an attacker to specify arbitrary connection properties could lead to a compromise of a system, that's a defect of an application that allows unauthenticated attackers that level of control. It's not the job of the pgjdbc driver to decide whether a given log file location is acceptable. End user applications that use the pgjdbc driver must ensure that filenames are valid and restrict unauthenticated attackers from being able to supply arbitrary values. That's not specific to the pgjdbc driver either, it would be true for any library that can write to the application's local file system. While we do not consider this a security issue with the driver, we have decided to remove the `loggerFile` and `loggerLevel` connection properties in the next release of the driver. Removal of those properties does not make exposing the JDBC URL or connection properties to an attacker safe and we continue to suggest that applications do not allow untrusted users to specify arbitrary connection properties. We are removing them to prevent misuse and their functionality can be delegated to `java.util.logging`.",
            "references": [
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/commit/f6d47034a4ce292e1a659fa00963f6f713117064"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-673j-qm5f-xpv8",
                    "reference_id": "GHSA-673j-qm5f-xpv8",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-673j-qm5f-xpv8"
                },
                {
                    "reference_url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8",
                    "reference_id": "GHSA-673j-qm5f-xpv8",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-673j-qm5f-xpv8"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/46299?format=api",
                    "purl": "pkg:maven/org.postgresql/postgresql@42.3.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-qub7-qp14-uqcg"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.3.3"
                }
            ],
            "aliases": [
                "GHSA-673j-qm5f-xpv8",
                "GMS-2022-75"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-uzj4-puvz-zfgh"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.4",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.postgresql/postgresql@42.2.28.jre7"
}