Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/109533?format=api",
    "vulnerability_id": "VCID-rudx-9f5s-bygg",
    "summary": "safe-eval vulnerable to Prototype Pollution\nAll versions of package safe-eval are vulnerable to Prototype Pollution which allows an attacker to add or modify properties of the Object.prototype.Consolidate when using the function safeEval. This is because the function uses vm variable, leading an attacker to modify properties of the Object.prototype.",
    "aliases": [
        {
            "alias": "CVE-2022-25904"
        },
        {
            "alias": "GHSA-33vh-7x8q-mg35"
        }
    ],
    "fixed_packages": [],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55754?format=api",
            "purl": "pkg:npm/safe-eval@0.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-f53c-csbx-sfd7"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-kng7-pxcx-vycx"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/212715?format=api",
            "purl": "pkg:npm/safe-eval@0.1.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-f53c-csbx-sfd7"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-kng7-pxcx-vycx"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.1.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/212716?format=api",
            "purl": "pkg:npm/safe-eval@0.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-f53c-csbx-sfd7"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-kng7-pxcx-vycx"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55755?format=api",
            "purl": "pkg:npm/safe-eval@0.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-f53c-csbx-sfd7"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-kng7-pxcx-vycx"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/55756?format=api",
            "purl": "pkg:npm/safe-eval@0.4.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.4.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64576?format=api",
            "purl": "pkg:npm/safe-eval@0.4.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-6ddq-agvr-zuhf"
                },
                {
                    "vulnerability": "VCID-jfqz-zcs9-2yby"
                },
                {
                    "vulnerability": "VCID-pegh-rtxa-k7d6"
                },
                {
                    "vulnerability": "VCID-rudx-9f5s-bygg"
                },
                {
                    "vulnerability": "VCID-ywrn-mga5-uubt"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/safe-eval@0.4.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2022-25904",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00291",
                    "scoring_system": "epss",
                    "scoring_elements": "0.528",
                    "published_at": "2026-06-05T12:55:00Z"
                },
                {
                    "value": "0.00291",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52764",
                    "published_at": "2026-06-08T12:55:00Z"
                },
                {
                    "value": "0.00291",
                    "scoring_system": "epss",
                    "scoring_elements": "0.5279",
                    "published_at": "2026-06-07T12:55:00Z"
                },
                {
                    "value": "0.00291",
                    "scoring_system": "epss",
                    "scoring_elements": "0.5274",
                    "published_at": "2026-06-04T12:55:00Z"
                },
                {
                    "value": "0.00291",
                    "scoring_system": "epss",
                    "scoring_elements": "0.52807",
                    "published_at": "2026-06-06T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2022-25904"
        },
        {
            "reference_url": "https://github.com/hacksparrow/safe-eval",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/hacksparrow/safe-eval"
        },
        {
            "reference_url": "https://github.com/hacksparrow/safe-eval/issues/26",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P"
                },
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track*",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2025-04-16T14:41:46Z/"
                }
            ],
            "url": "https://github.com/hacksparrow/safe-eval/issues/26"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25904",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-25904"
        },
        {
            "reference_url": "https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "7.5",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P"
                },
                {
                    "value": "9.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
                },
                {
                    "value": "CRITICAL",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                },
                {
                    "value": "Track*",
                    "scoring_system": "ssvc",
                    "scoring_elements": "SSVCv2/E:P/A:Y/T:T/P:M/B:A/M:M/D:R/2025-04-16T14:41:46Z/"
                }
            ],
            "url": "https://security.snyk.io/vuln/SNYK-JS-SAFEEVAL-3175701"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-33vh-7x8q-mg35",
            "reference_id": "GHSA-33vh-7x8q-mg35",
            "reference_type": "",
            "scores": [
                {
                    "value": "CRITICAL",
                    "scoring_system": "cvssv3.1_qr",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/advisories/GHSA-33vh-7x8q-mg35"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1321,
            "name": "Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')",
            "description": "The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype."
        },
        {
            "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."
        },
        {
            "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."
        }
    ],
    "exploits": [],
    "severity_range_score": "7.5 - 10.0",
    "exploitability": "0.5",
    "weighted_severity": "9.0",
    "risk_score": 4.5,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rudx-9f5s-bygg"
}