Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/30563?format=api",
    "vulnerability_id": "VCID-8c87-x99e-tqav",
    "summary": "XSS via .swf files\nYUI is a free, open source JavaScript and CSS framework for building richly interactive web applications.\n\nIn the vulnerable versions, the `uploader.swf` and `io.swf` utilities contain a vulnerability allowing cross-site scripting through the `.swf` files used in these components. Through a url accessing these files, and attacker can inject script in the context of these files, potentially exposing cookies or other sensitive information.\n\nThe vulnerability resurfaced in v0.10.2, but only with `io.swf`.",
    "aliases": [
        {
            "alias": "CVE-2013-4941"
        },
        {
            "alias": "GHSA-64r3-582j-frqm"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62105?format=api",
            "purl": "pkg:composer/moodle/moodle@2.2.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.2.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62106?format=api",
            "purl": "pkg:composer/moodle/moodle@2.3.8",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.3.8"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62107?format=api",
            "purl": "pkg:composer/moodle/moodle@2.4.5",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.4.5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62108?format=api",
            "purl": "pkg:composer/moodle/moodle@2.5.1",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.5.1"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62102?format=api",
            "purl": "pkg:composer/moodle/moodle@2.3.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-1uce-2wtr-8bfg"
                },
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-2vsp-tbwq-1qhf"
                },
                {
                    "vulnerability": "VCID-41up-e414-hyba"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-9kbu-4u3w-jufu"
                },
                {
                    "vulnerability": "VCID-b2tv-8q9g-qqfz"
                },
                {
                    "vulnerability": "VCID-bgaz-b5zd-e7aj"
                },
                {
                    "vulnerability": "VCID-et8t-f1u1-kudb"
                },
                {
                    "vulnerability": "VCID-fu6f-fjmn-g7eh"
                },
                {
                    "vulnerability": "VCID-fwn7-hez1-ayhj"
                },
                {
                    "vulnerability": "VCID-kqg2-2xqk-q7ga"
                },
                {
                    "vulnerability": "VCID-mh2f-ytz5-9fhg"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                },
                {
                    "vulnerability": "VCID-qgn8-zs2m-vkc4"
                },
                {
                    "vulnerability": "VCID-r7wm-grca-3fgw"
                },
                {
                    "vulnerability": "VCID-vgxb-fkuj-9fgk"
                },
                {
                    "vulnerability": "VCID-y15n-cf9z-dyc4"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.3.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62103?format=api",
            "purl": "pkg:composer/moodle/moodle@2.4.0-rc1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.4.0-rc1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62104?format=api",
            "purl": "pkg:composer/moodle/moodle@2.5.0-beta",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-958z-dzyk-xuf1"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/moodle/moodle@2.5.0-beta"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6613?format=api",
            "purl": "pkg:npm/yui@3.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-79zv-gs5g-t7ed"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/yui@3.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/62214?format=api",
            "purl": "pkg:npm/yui@3.2.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/yui@3.2.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6614?format=api",
            "purl": "pkg:npm/yui@3.9.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-79zv-gs5g-t7ed"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/yui@3.9.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/6615?format=api",
            "purl": "pkg:npm/yui@3.10.2",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-2676-n5ah-aqbh"
                },
                {
                    "vulnerability": "VCID-79zv-gs5g-t7ed"
                },
                {
                    "vulnerability": "VCID-8c87-x99e-tqav"
                },
                {
                    "vulnerability": "VCID-pca7-qesm-qudu"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/yui@3.10.2"
        }
    ],
    "references": [
        {
            "reference_url": "https://moodle.org/mod/forum/discuss.php?d=232496",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://moodle.org/mod/forum/discuss.php?d=232496"
        },
        {
            "reference_url": "https://web.archive.org/web/20130909203912/http://yuilibrary.com/support/20130515-vulnerability",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://web.archive.org/web/20130909203912/http://yuilibrary.com/support/20130515-vulnerability"
        },
        {
            "reference_url": "https://yuilibrary.com/support/20130515-vulnerability/)",
            "reference_id": "",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://yuilibrary.com/support/20130515-vulnerability/)"
        },
        {
            "reference_url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/332.json",
            "reference_id": "332",
            "reference_type": "",
            "scores": [
                {
                    "value": "5.3",
                    "scoring_system": "cvssv3",
                    "scoring_elements": ""
                }
            ],
            "url": "https://github.com/nodejs/security-wg/blob/main/vuln/npm/332.json"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2013-4941",
            "reference_id": "CVE-2013-4941",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2013-4941"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-64r3-582j-frqm",
            "reference_id": "GHSA-64r3-582j-frqm",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-64r3-582j-frqm"
        }
    ],
    "weaknesses": [
        {
            "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."
        },
        {
            "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": "5.3 - 5.3",
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-8c87-x99e-tqav"
}