Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/170477?format=api",
    "purl": "pkg:gem/actionmailer@4.2.1.rc4",
    "type": "gem",
    "namespace": "",
    "name": "actionmailer",
    "version": "4.2.1.rc4",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "6.1.7.9",
    "latest_non_vulnerable_version": "7.2.1.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/51560?format=api",
            "vulnerability_id": "VCID-72vg-y91y-skh4",
            "summary": "Possible ReDoS vulnerability in block_format in Action Mailer\nThere is a possible ReDoS vulnerability in the block_format helper\nin Action Mailer. This vulnerability has been assigned the\nCVE identifier CVE-2024-47889.\n\n## Impact\n\nCarefully crafted text can cause the block_format helper to take an\nunexpected amount of time, possibly resulting in a DoS vulnerability.\nAll users running an affected release should either upgrade or apply\nthe relevant patch immediately.\n\nRuby 3.2 has mitigations for this problem, so Rails applications\nusing Ruby 3.2 or newer are unaffected. Rails 8.0.0.beta1 requires\nRuby 3.2 or greater so is unaffected.\n\n## Releases\n\nThe fixed releases are available at the normal locations.\n\n## Workarounds\n\nUsers can avoid calling the `block_format` helper or upgrade\nto Ruby 3.2.\n\n##Credits\n\nThanks to [ooooooo_q](https://hackerone.com/ooooooo_q) for the report!",
            "references": [
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-47889.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "3.7",
                            "scoring_system": "cvssv3",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
                        }
                    ],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-47889.json"
                },
                {
                    "reference_url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.9",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
                        }
                    ],
                    "url": "https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"
                },
                {
                    "reference_url": "https://github.com/rails/rails",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rails/rails"
                },
                {
                    "reference_url": "https://github.com/rails/rails/security/advisories/GHSA-h47h-mwp9-c6q6",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-17T16:27:30Z/"
                        }
                    ],
                    "url": "https://github.com/rails/rails/security/advisories/GHSA-h47h-mwp9-c6q6"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/0e5694f4d32544532d2301a9b4084eacb6986e94",
                    "reference_id": "0e5694f4d32544532d2301a9b4084eacb6986e94",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-17T16:27:30Z/"
                        }
                    ],
                    "url": "https://github.com/rails/rails/commit/0e5694f4d32544532d2301a9b4084eacb6986e94"
                },
                {
                    "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085376",
                    "reference_id": "1085376",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1085376"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2319033",
                    "reference_id": "2319033",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2319033"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/3612e3eb3fbafed4f85e1c6ea4c7b6addbb0fdd3",
                    "reference_id": "3612e3eb3fbafed4f85e1c6ea4c7b6addbb0fdd3",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-17T16:27:30Z/"
                        }
                    ],
                    "url": "https://github.com/rails/rails/commit/3612e3eb3fbafed4f85e1c6ea4c7b6addbb0fdd3"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/985f1923fa62806ff676e41de67c3b4552131ab9",
                    "reference_id": "985f1923fa62806ff676e41de67c3b4552131ab9",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-17T16:27:30Z/"
                        }
                    ],
                    "url": "https://github.com/rails/rails/commit/985f1923fa62806ff676e41de67c3b4552131ab9"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/be898cc996986decfe238341d96b2a6573b8fd2e",
                    "reference_id": "be898cc996986decfe238341d96b2a6573b8fd2e",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2024-10-17T16:27:30Z/"
                        }
                    ],
                    "url": "https://github.com/rails/rails/commit/be898cc996986decfe238341d96b2a6573b8fd2e"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47889",
                    "reference_id": "CVE-2024-47889",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-47889"
                },
                {
                    "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionmailer/CVE-2024-47889.yml",
                    "reference_id": "CVE-2024-47889.YML",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.6",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionmailer/CVE-2024-47889.yml"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-h47h-mwp9-c6q6",
                    "reference_id": "GHSA-h47h-mwp9-c6q6",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-h47h-mwp9-c6q6"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/82984?format=api",
                    "purl": "pkg:gem/actionmailer@6.1.7.9",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@6.1.7.9"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/82985?format=api",
                    "purl": "pkg:gem/actionmailer@7.0.8.5",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@7.0.8.5"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/82986?format=api",
                    "purl": "pkg:gem/actionmailer@7.1.4.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@7.1.4.1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/82987?format=api",
                    "purl": "pkg:gem/actionmailer@7.2.1.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@7.2.1.1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/170690?format=api",
                    "purl": "pkg:gem/actionmailer@8.0.0.beta1",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-72vg-y91y-skh4"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@8.0.0.beta1"
                }
            ],
            "aliases": [
                "CVE-2024-47889",
                "GHSA-h47h-mwp9-c6q6"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-72vg-y91y-skh4"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "3.1",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionmailer@4.2.1.rc4"
}