Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/51672?format=api",
    "vulnerability_id": "VCID-86d2-rv8v-vqbt",
    "summary": "Cross-site Scripting in actionpack\nactionpack from the Ruby on Rails project is vulnerable to Cross-site Scripting in the Route Error Page. This issue has been patched with this [commit](https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4). \n\nThis vulnerability is disputed by the Rails security team. It requires that the developer is tricked into copy pasting a malicious javascript-containing string into a development-only error page accessible only via localhost.",
    "aliases": [
        {
            "alias": "CVE-2022-3704"
        },
        {
            "alias": "GHSA-9chr-4fjh-5rgw"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/136976?format=api",
            "purl": "pkg:gem/actionpack@7.0.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-5bh7-drnb-7ygg"
                },
                {
                    "vulnerability": "VCID-63gy-6njy-kbd8"
                },
                {
                    "vulnerability": "VCID-6tty-dbwx-rbgx"
                },
                {
                    "vulnerability": "VCID-86d2-rv8v-vqbt"
                },
                {
                    "vulnerability": "VCID-dd9p-x7k3-37ea"
                },
                {
                    "vulnerability": "VCID-ehbj-aezy-d7h4"
                },
                {
                    "vulnerability": "VCID-g3rk-djae-pkeh"
                },
                {
                    "vulnerability": "VCID-hppf-a715-r7b2"
                },
                {
                    "vulnerability": "VCID-p22r-u1dd-b7b3"
                },
                {
                    "vulnerability": "VCID-sfyc-jewr-wuf5"
                },
                {
                    "vulnerability": "VCID-sgdb-985e-4uej"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/actionpack@7.0.4"
        }
    ],
    "references": [
        {
            "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-3704.json",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.4",
                    "scoring_system": "cvssv3",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
                }
            ],
            "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-3704.json"
        },
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-3704",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50602",
                    "published_at": "2026-04-07T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50704",
                    "published_at": "2026-04-18T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50698",
                    "published_at": "2026-04-16T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50657",
                    "published_at": "2026-04-13T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50672",
                    "published_at": "2026-04-12T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50695",
                    "published_at": "2026-04-11T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50652",
                    "published_at": "2026-04-09T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50619",
                    "published_at": "2026-04-02T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50656",
                    "published_at": "2026-04-08T12:55:00Z"
                },
                {
                    "value": "0.00272",
                    "scoring_system": "epss",
                    "scoring_elements": "0.50647",
                    "published_at": "2026-04-04T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52109",
                    "published_at": "2026-05-07T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52112",
                    "published_at": "2026-04-29T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52148",
                    "published_at": "2026-04-26T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52142",
                    "published_at": "2026-04-24T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52195",
                    "published_at": "2026-04-21T12:55:00Z"
                },
                {
                    "value": "0.00287",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52058",
                    "published_at": "2026-05-05T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-3704"
        },
        {
            "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3704",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-3704"
        },
        {
            "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:N/UI:R/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/rails/rails",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/rails/rails"
        },
        {
            "reference_url": "https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-07-18T18:34:38Z/"
                }
            ],
            "url": "https://github.com/rails/rails/commit/be177e4566747b73ff63fd5f529fab564e475ed4"
        },
        {
            "reference_url": "https://github.com/rails/rails/issues/46244",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-07-18T18:34:38Z/"
                }
            ],
            "url": "https://github.com/rails/rails/issues/46244"
        },
        {
            "reference_url": "https://github.com/rails/rails/issues/46244#issuecomment-1380875153",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/rails/rails/issues/46244#issuecomment-1380875153"
        },
        {
            "reference_url": "https://github.com/rails/rails/pull/46269",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/rails/rails/pull/46269"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-3704",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-3704"
        },
        {
            "reference_url": "https://vuldb.com/?id.212319",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "3.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N"
                },
                {
                    "value": "LOW",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2024-07-18T18:34:38Z/"
                }
            ],
            "url": "https://vuldb.com/?id.212319"
        },
        {
            "reference_url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024274",
            "reference_id": "1024274",
            "reference_type": "",
            "scores": [],
            "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024274"
        },
        {
            "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=2138957",
            "reference_id": "2138957",
            "reference_type": "",
            "scores": [],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2138957"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-9chr-4fjh-5rgw",
            "reference_id": "GHSA-9chr-4fjh-5rgw",
            "reference_type": "",
            "scores": [
                {
                    "value": "LOW",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-9chr-4fjh-5rgw"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 707,
            "name": "Improper Neutralization",
            "description": "The product does not ensure or incorrectly ensures that structured messages or data are well-formed and that certain security properties are met before being read from an upstream component or sent to a downstream component."
        },
        {
            "cwe_id": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        }
    ],
    "exploits": [],
    "severity_range_score": "0.1 - 6.3",
    "exploitability": "0.5",
    "weighted_severity": "4.9",
    "risk_score": 2.5,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-86d2-rv8v-vqbt"
}