Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/40553?format=api",
    "vulnerability_id": "VCID-t5ka-e1xq-xycb",
    "summary": "Cross-site Scripting\nCraft CMS allows XSS by saving a new title from the console tab.",
    "aliases": [
        {
            "alias": "CVE-2018-20418"
        },
        {
            "alias": "GHSA-72pf-cvwq-vgqg"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57233?format=api",
            "purl": "pkg:composer/craftcms/cms@3.0.26",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3twn-e7up-2ugq"
                },
                {
                    "vulnerability": "VCID-xv52-rc7v-yba8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@3.0.26"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/57232?format=api",
            "purl": "pkg:composer/craftcms/cms@3.0.25",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-3twn-e7up-2ugq"
                },
                {
                    "vulnerability": "VCID-t5ka-e1xq-xycb"
                },
                {
                    "vulnerability": "VCID-xv52-rc7v-yba8"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/craftcms/cms@3.0.25"
        }
    ],
    "references": [
        {
            "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2018-20418",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "0.00471",
                    "scoring_system": "epss",
                    "scoring_elements": "0.65002",
                    "published_at": "2026-06-05T12:55:00Z"
                },
                {
                    "value": "0.00471",
                    "scoring_system": "epss",
                    "scoring_elements": "0.64959",
                    "published_at": "2026-06-04T12:55:00Z"
                }
            ],
            "url": "https://api.first.org/data/v1/epss?cve=CVE-2018-20418"
        },
        {
            "reference_url": "https://github.com/craftcms/cms",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/craftcms/cms"
        },
        {
            "reference_url": "https://github.com/rdincel1/Craft-CMS-3.0.25---Cross-Site-Scripting",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/rdincel1/Craft-CMS-3.0.25---Cross-Site-Scripting"
        },
        {
            "reference_url": "https://web.archive.org/web/20201208014852/https://www.raifberkaydincel.com/craft-cms-3-0-25-cross-site-scripting-vulnerability.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://web.archive.org/web/20201208014852/https://www.raifberkaydincel.com/craft-cms-3-0-25-cross-site-scripting-vulnerability.html"
        },
        {
            "reference_url": "https://www.exploit-db.com/exploits/46054",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://www.exploit-db.com/exploits/46054"
        },
        {
            "reference_url": "https://www.exploit-db.com/exploits/46054/",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.exploit-db.com/exploits/46054/"
        },
        {
            "reference_url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/46054.txt",
            "reference_id": "CVE-2018-20418",
            "reference_type": "exploit",
            "scores": [],
            "url": "https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/php/webapps/46054.txt"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20418",
            "reference_id": "CVE-2018-20418",
            "reference_type": "",
            "scores": [
                {
                    "value": "4.8",
                    "scoring_system": "cvssv3.1",
                    "scoring_elements": "CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
                },
                {
                    "value": "MODERATE",
                    "scoring_system": "generic_textual",
                    "scoring_elements": ""
                }
            ],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20418"
        }
    ],
    "weaknesses": [
        {
            "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": 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": 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": [
        {
            "date_added": "2018-12-27",
            "description": "Craft CMS 3.0.25 - Cross-Site Scripting",
            "required_action": null,
            "due_date": null,
            "notes": null,
            "known_ransomware_campaign_use": false,
            "source_date_published": "2018-12-27",
            "exploit_type": "webapps",
            "platform": "php",
            "source_date_updated": "2019-01-02",
            "data_source": "Exploit-DB",
            "source_url": ""
        }
    ],
    "severity_range_score": "4.0 - 6.9",
    "exploitability": "2.0",
    "weighted_severity": "6.2",
    "risk_score": 10.0,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-t5ka-e1xq-xycb"
}