Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/375709?format=api",
    "purl": "pkg:gem/graphql@2.3.23",
    "type": "gem",
    "namespace": "",
    "name": "graphql",
    "version": "2.3.23",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": false,
    "next_non_vulnerable_version": "2.4.18",
    "latest_non_vulnerable_version": "2.6.1",
    "affected_by_vulnerabilities": [],
    "fixing_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/359440?format=api",
            "vulnerability_id": "VCID-u1pb-z884-8fby",
            "summary": "GraphQL-Ruby's Ruby lexer does not count comment tokens for the purposes of max_query_string_tokens\nGraphQL-Ruby's `max_query_string_tokens` configuration didn't count\ncomment tokens against the limit, allowing strings to be processed\neven after the configured maximum had actually been reached.\n\nIn patched versions, the Ruby lexer does count these tokens.\n\nGraphQL-CParser is not affected by this problem.\n\n`max_query_string_tokens` was introduced in v2.3.1. Each 2.x\nversion has received a new patch release for including a fix.",
            "references": [
                {
                    "reference_url": "https://github.com/rmosolgo/graphql-ruby",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rmosolgo/graphql-ruby"
                },
                {
                    "reference_url": "https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-3h96-34p3-xm76",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3",
                            "scoring_elements": ""
                        },
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-3h96-34p3-xm76"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-3h96-34p3-xm76",
                    "reference_id": "GHSA-3h96-34p3-xm76",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-3h96-34p3-xm76"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/375709?format=api",
                    "purl": "pkg:gem/graphql@2.3.23",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/graphql@2.3.23"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/375708?format=api",
                    "purl": "pkg:gem/graphql@2.4.18",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/graphql@2.4.18"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/375707?format=api",
                    "purl": "pkg:gem/graphql@2.5.26",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/graphql@2.5.26"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/375706?format=api",
                    "purl": "pkg:gem/graphql@2.6.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/graphql@2.6.1"
                }
            ],
            "aliases": [
                "GHSA-3h96-34p3-xm76"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-u1pb-z884-8fby"
        }
    ],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/graphql@2.3.23"
}