Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/66967?format=api",
    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@11.0.16",
    "type": "maven",
    "namespace": "org.eclipse.jetty",
    "name": "jetty-server",
    "version": "11.0.16",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "12.0.1",
    "latest_non_vulnerable_version": "12.1.6",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46032?format=api",
            "vulnerability_id": "VCID-3vps-uq7s-nfb7",
            "summary": "Improper Handling of Length Parameter Inconsistency\nJetty is a Java based web server and servlet engine. Prior to versions 9.4.52, 10.0.16, 11.0.16, and 12.0.1, Jetty accepts the `+` character proceeding the content-length value in a HTTP/1 header field. This is more permissive than allowed by the RFC and other servers routinely reject such requests with 400 responses. There is no known exploit scenario, but it is conceivable that request smuggling could result if jetty is used in combination with a server that does not close the connection after sending such a 400 response. Versions 9.4.52, 10.0.16, 11.0.16, and 12.0.1 contain a patch for this issue. There is no workaround as there is no known exploit scenario.",
            "references": [
                {
                    "reference_url": "https://www.rfc-editor.org/rfc/rfc9110#section-8.6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.rfc-editor.org/rfc/rfc9110#section-8.6"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-40167",
                    "reference_id": "CVE-2023-40167",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-40167"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-hmr7-m48g-48f6",
                    "reference_id": "GHSA-hmr7-m48g-48f6",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-hmr7-m48g-48f6"
                },
                {
                    "reference_url": "https://github.com/eclipse/jetty.project/security/advisories/GHSA-hmr7-m48g-48f6",
                    "reference_id": "GHSA-hmr7-m48g-48f6",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project/security/advisories/GHSA-hmr7-m48g-48f6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66965?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@9.4.52.v20230823",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@9.4.52.v20230823"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66966?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@10.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@10.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66967?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@11.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@11.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64768?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@12.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@12.0.1"
                }
            ],
            "aliases": [
                "CVE-2023-40167",
                "GHSA-hmr7-m48g-48f6"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-3vps-uq7s-nfb7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46014?format=api",
            "vulnerability_id": "VCID-w2z8-sxzw-rugp",
            "summary": "Jetty vulnerable to errant command quoting in CGI Servlet\nIf a user sends a request to a `org.eclipse.jetty.servlets.CGI` Servlet for a binary with a space in its name, the servlet will escape the command by wrapping it in quotation marks. This wrapped command, plus an optional command prefix, will then be executed through a call to Runtime.exec. If the original binary name provided by the user contains a quotation mark followed by a space, the resulting command line will contain multiple tokens instead of one. For example, if a request references a binary called file” name “here, the escaping algorithm will generate the command line string “file” name “here”, which will invoke the binary named file, not the one that the user requested.\n\n```java\nif (execCmd.length() > 0 && execCmd.charAt(0) != '\"' && execCmd.contains(\" \"))\nexecCmd = \"\\\"\" + execCmd + \"\\\"\";\n```",
            "references": [
                {
                    "reference_url": "https://github.com/eclipse/jetty.project",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project"
                },
                {
                    "reference_url": "https://github.com/eclipse/jetty.project/pull/9516",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project/pull/9516"
                },
                {
                    "reference_url": "https://github.com/eclipse/jetty.project/pull/9888",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project/pull/9888"
                },
                {
                    "reference_url": "https://github.com/eclipse/jetty.project/pull/9889",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project/pull/9889"
                },
                {
                    "reference_url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00039.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00039.html"
                },
                {
                    "reference_url": "https://www.debian.org/security/2023/dsa-5507",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.debian.org/security/2023/dsa-5507"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-36479",
                    "reference_id": "CVE-2023-36479",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-36479"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-3gh6-v5v9-6v9j",
                    "reference_id": "GHSA-3gh6-v5v9-6v9j",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-3gh6-v5v9-6v9j"
                },
                {
                    "reference_url": "https://github.com/eclipse/jetty.project/security/advisories/GHSA-3gh6-v5v9-6v9j",
                    "reference_id": "GHSA-3gh6-v5v9-6v9j",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/eclipse/jetty.project/security/advisories/GHSA-3gh6-v5v9-6v9j"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66965?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@9.4.52.v20230823",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@9.4.52.v20230823"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66966?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@10.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@10.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/66967?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@11.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@11.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64768?format=api",
                    "purl": "pkg:maven/org.eclipse.jetty/jetty-server@12.0.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@12.0.1"
                }
            ],
            "aliases": [
                "CVE-2023-36479",
                "GHSA-3gh6-v5v9-6v9j"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-w2z8-sxzw-rugp"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.eclipse.jetty/jetty-server@11.0.16"
}