Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/60612?format=api",
    "purl": "pkg:gem/rails@7.0.2.2",
    "type": "gem",
    "namespace": "",
    "name": "rails",
    "version": "7.0.2.2",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "7.0.4.1",
    "latest_non_vulnerable_version": "7.1.3.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42380?format=api",
            "vulnerability_id": "VCID-2fra-ffky-97ce",
            "summary": "Exposure of information in Action Pack\nAction Pack is a framework for handling and responding to web requests. Under certain circumstances response bodies will not be closed. In the event a response is *not* notified of a `close`, `ActionDispatch::Executor` will not know to reset thread local state for the next request. This can lead to data being leaked to subsequent requests. This has been fixed in Rails 7.0.2.1, 6.1.4.5, 6.0.4.5, and 5.2.6.1. Upgrading is highly recommended, but to work around this problem a middleware described in GHSA-wh98-p28r-vrc9 can be used.",
            "references": [
                {
                    "reference_url": "https://discuss.rubyonrails.org/t/cve-2022-23633-possible-exposure-of-information-vulnerability-in-action-pack/80016",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://discuss.rubyonrails.org/t/cve-2022-23633-possible-exposure-of-information-vulnerability-in-action-pack/80016"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/rails/rails/commit/f9a2ad03943d5c2ba54e1d45f155442b519c75da"
                },
                {
                    "reference_url": "https://rubyonrails.org/2022/2/11/Rails-7-0-2-2-6-1-4-6-6-0-4-6-and-5-2-6-2-have-been-released",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://rubyonrails.org/2022/2/11/Rails-7-0-2-2-6-1-4-6-6-0-4-6-and-5-2-6-2-have-been-released"
                },
                {
                    "reference_url": "http://www.openwall.com/lists/oss-security/2022/02/11/5",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "http://www.openwall.com/lists/oss-security/2022/02/11/5"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23633",
                    "reference_id": "CVE-2022-23633",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-23633"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-wh98-p28r-vrc9",
                    "reference_id": "GHSA-wh98-p28r-vrc9",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-wh98-p28r-vrc9"
                },
                {
                    "reference_url": "https://github.com/rails/rails/security/advisories/GHSA-wh98-p28r-vrc9",
                    "reference_id": "GHSA-wh98-p28r-vrc9",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/rails/rails/security/advisories/GHSA-wh98-p28r-vrc9"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60609?format=api",
                    "purl": "pkg:gem/rails@5.2.6.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@5.2.6.2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60610?format=api",
                    "purl": "pkg:gem/rails@6.0.4.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@6.0.4.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60611?format=api",
                    "purl": "pkg:gem/rails@6.1.4.6",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@6.1.4.6"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60612?format=api",
                    "purl": "pkg:gem/rails@7.0.2.2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@7.0.2.2"
                }
            ],
            "aliases": [
                "CVE-2022-23633",
                "GHSA-wh98-p28r-vrc9"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2fra-ffky-97ce"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@7.0.2.2"
}